public class DefaultWeChatPayPaymentService extends DefaultPaymentServiceImpl implements ChinesePaymentService
| Constructor and Description |
|---|
DefaultWeChatPayPaymentService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelPayment(java.lang.String orderCode)
Canceling the payment with the 3rd part payment service provider server
|
void |
createTransactionForNewRequest(java.lang.String orderCode)
class for Chinesepspwechatpayservices payment impl.
|
protected ChineseOrderService |
getChineseOrderService() |
CommerceCheckoutService |
getCommerceCheckoutService() |
ConfigurationService |
getConfigurationService() |
MediaService |
getMediaService() |
protected ModelService |
getModelService() |
WeChatPayOrderDao |
getOrderDao() |
java.lang.String |
getPaymentRequestUrl(java.lang.String orderCode)
Getting the PaymentRequestUrl to be send to the 3rd part payment service provider server
|
java.lang.String |
getPspLogoUrl()
Getting the Logo of the 3rd part payment service providers
|
java.util.Optional<java.lang.String> |
getRefundRequestUrl(java.lang.String orderCode)
Getting the RefundRequestUrl to be send to the 3rd part payment service provider server
|
protected WeChatPayConfiguration |
getWeChatPayConfiguration() |
protected WeChatPayHttpClient |
getWeChatPayHttpClient() |
WeChatPayPaymentInfoStrategy |
getWeChatPayPaymentInfoStrategy() |
WeChatPayPaymentTransactionStrategy |
getWeChatPayPaymentTransactionStrategy() |
java.lang.String |
handleAsyncResponse(HttpServletRequest request,
HttpServletResponse response)
Handling the Asyn-response of the 3rd part payment service provider server
|
java.lang.String |
handleSyncResponse(HttpServletRequest request,
HttpServletResponse response)
Handling the Sync-response of the 3rd part payment service provider server
|
void |
setChineseOrderService(ChineseOrderService chineseOrderService) |
void |
setCommerceCheckoutService(CommerceCheckoutService commerceCheckoutService) |
void |
setConfigurationService(ConfigurationService configurationService) |
void |
setMediaService(MediaService mediaService) |
void |
setModelService(ModelService modelService) |
void |
setOrderDao(WeChatPayOrderDao orderDao) |
boolean |
setPaymentInfo(CartModel cartModel,
ChinesePaymentInfoModel chinesePaymentInfoModel)
Saving the PaymentInfo
|
void |
setWeChatPayConfiguration(WeChatPayConfiguration weChatPayConfiguration) |
void |
setWeChatPayHttpClient(WeChatPayHttpClient weChatPayHttpClient) |
void |
setWeChatPayPaymentInfoStrategy(WeChatPayPaymentInfoStrategy weChatPayPaymentInfoStrategy) |
void |
setWeChatPayPaymentTransactionStrategy(WeChatPayPaymentTransactionStrategy weChatPayPaymentTransactionStrategy) |
void |
syncPaymentStatus(java.lang.String orderCode)
Synchronizing the PaymentStatus with the 3rd part payment service provider server
|
void |
updatePaymentInfoForPlaceOrder(java.lang.String orderCode)
Update payment info after place order
|
attachPaymentInfo, authorize, authorize, authorize, authorize, authorize, authorize, authorize, authorizeInternal, cancel, capture, createBillingInfo, createBillingInfo, createSubscription, createSubscription, deleteSubscription, getCardPaymentService, getCommonI18NService, getFlexibleSearchService, getNewPaymentTransactionEntryCode, getPaymentInfoCreator, getPaymentTransaction, getPaymentTransactionEntry, getSubscriptionData, getTransactionCodeGenerator, partialCapture, refundFollowOn, refundStandalone, refundStandalone, refundStandalone, setCardPaymentService, setCommonI18NService, setFlexibleSearchService, setPaymentInfoCreator, setTransactionCodeGenerator, updateSubscriptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitattachPaymentInfo, authorize, authorize, authorize, authorize, authorize, authorize, authorize, cancel, capture, createSubscription, createSubscription, deleteSubscription, getNewPaymentTransactionEntryCode, getPaymentTransaction, getPaymentTransactionEntry, getSubscriptionData, partialCapture, refundFollowOn, refundStandalone, refundStandalone, refundStandalone, updateSubscriptionpublic java.lang.String handleAsyncResponse(HttpServletRequest request,
HttpServletResponse response)
ChinesePaymentServicehandleAsyncResponse in interface ChinesePaymentServicerequest - The HttpServletRequestresponse - The HttpServletResponsepublic java.lang.String handleSyncResponse(HttpServletRequest request,
HttpServletResponse response)
ChinesePaymentServicehandleSyncResponse in interface ChinesePaymentServicerequest - The HttpServletRequestresponse - The HttpServletResponsepublic boolean cancelPayment(java.lang.String orderCode)
ChinesePaymentServicecancelPayment in interface ChinesePaymentServiceorderCode - The code of the orderpublic java.lang.String getPaymentRequestUrl(java.lang.String orderCode)
ChinesePaymentServicegetPaymentRequestUrl in interface ChinesePaymentServiceorderCode - The code of the orderpublic void syncPaymentStatus(java.lang.String orderCode)
ChinesePaymentServicesyncPaymentStatus in interface ChinesePaymentServiceorderCode - The code of the orderpublic boolean setPaymentInfo(CartModel cartModel, ChinesePaymentInfoModel chinesePaymentInfoModel)
ChinesePaymentServicesetPaymentInfo in interface ChinesePaymentServicecartModel - The current cartchinesePaymentInfoModel - The ChinesePaymentInfo of the cartpublic java.lang.String getPspLogoUrl()
ChinesePaymentServicegetPspLogoUrl in interface ChinesePaymentServicepublic void updatePaymentInfoForPlaceOrder(java.lang.String orderCode)
ChinesePaymentServiceupdatePaymentInfoForPlaceOrder in interface ChinesePaymentServiceorderCode - The code of the orderpublic java.util.Optional<java.lang.String> getRefundRequestUrl(java.lang.String orderCode)
ChinesePaymentServicegetRefundRequestUrl in interface ChinesePaymentServiceorderCode - The code of the orderpublic void createTransactionForNewRequest(java.lang.String orderCode)
orderCode - Find Order by the orderCodepublic MediaService getMediaService()
public void setMediaService(MediaService mediaService)
public WeChatPayPaymentInfoStrategy getWeChatPayPaymentInfoStrategy()
public void setWeChatPayPaymentInfoStrategy(WeChatPayPaymentInfoStrategy weChatPayPaymentInfoStrategy)
public CommerceCheckoutService getCommerceCheckoutService()
public void setCommerceCheckoutService(CommerceCheckoutService commerceCheckoutService)
public ConfigurationService getConfigurationService()
public void setConfigurationService(ConfigurationService configurationService)
public WeChatPayOrderDao getOrderDao()
public void setOrderDao(WeChatPayOrderDao orderDao)
public WeChatPayPaymentTransactionStrategy getWeChatPayPaymentTransactionStrategy()
public void setWeChatPayPaymentTransactionStrategy(WeChatPayPaymentTransactionStrategy weChatPayPaymentTransactionStrategy)
weChatPayPaymentTransactionStrategy - the weChatPayPaymentTransactionStrategy to setprotected WeChatPayConfiguration getWeChatPayConfiguration()
public void setWeChatPayConfiguration(WeChatPayConfiguration weChatPayConfiguration)
protected WeChatPayHttpClient getWeChatPayHttpClient()
public void setWeChatPayHttpClient(WeChatPayHttpClient weChatPayHttpClient)
protected ModelService getModelService()
getModelService in class DefaultPaymentServiceImplpublic void setModelService(ModelService modelService)
setModelService in class DefaultPaymentServiceImplprotected ChineseOrderService getChineseOrderService()
public void setChineseOrderService(ChineseOrderService chineseOrderService)
Copyright © 2018 SAP SE. All Rights Reserved.