Interface ChinesePaymentService
- All Superinterfaces:
PaymentService
- All Known Implementing Classes:
DefaultAlipayPaymentService,DefaultWeChatPayPaymentService
The interface to be implemented by the 3rd part payment service provider
-
Method Summary
Modifier and TypeMethodDescriptionbooleancancelPayment(String orderCode) Canceling the payment with the 3rd part payment service provider servergetPaymentRequestUrl(String orderCode) Getting the PaymentRequestUrl to be send to the 3rd part payment service provider serverGetting the Logo of the 3rd part payment service providersgetRefundRequestUrl(String orderCode) Getting the RefundRequestUrl to be send to the 3rd part payment service provider serverhandleAsyncResponse(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Handling the Asyn-response of the 3rd part payment service provider serverhandleSyncResponse(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Handling the Sync-response of the 3rd part payment service provider serverbooleansetPaymentInfo(CartModel cartModel, ChinesePaymentInfoModel chinesePaymentInfoModel) Saving the PaymentInfovoidsyncPaymentStatus(String orderCode) Synchronizing the PaymentStatus with the 3rd part payment service provider serverdefault voidupdatePaymentInfoForPlaceOrder(String orderCode) Update payment info after place orderMethods inherited from interface de.hybris.platform.payment.PaymentService
attachPaymentInfo, authorize, authorize, authorize, authorize, authorize, authorize, cancel, capture, createSubscription, createSubscription, deleteSubscription, getNewPaymentTransactionEntryCode, getPaymentTransaction, getPaymentTransactionEntry, getSubscriptionData, partialCapture, refundFollowOn, refundStandalone, refundStandalone, updateSubscription
-
Method Details
-
handleAsyncResponse
String handleAsyncResponse(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Handling the Asyn-response of the 3rd part payment service provider server- Parameters:
request- The HttpServletRequestresponse- The HttpServletResponse- Returns:
- the code of the order
-
handleSyncResponse
String handleSyncResponse(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Handling the Sync-response of the 3rd part payment service provider server- Parameters:
request- The HttpServletRequestresponse- The HttpServletResponse- Returns:
- the code of the order
-
cancelPayment
Canceling the payment with the 3rd part payment service provider server- Parameters:
orderCode- The code of the order- Returns:
- true when canceling payment is successful
-
getPaymentRequestUrl
Getting the PaymentRequestUrl to be send to the 3rd part payment service provider server- Parameters:
orderCode- The code of the order- Returns:
- the payment request Url of the 3rd part payment service provider
-
syncPaymentStatus
Synchronizing the PaymentStatus with the 3rd part payment service provider server- Parameters:
orderCode- The code of the order
-
setPaymentInfo
Saving the PaymentInfo- Parameters:
cartModel- The current cartchinesePaymentInfoModel- The ChinesePaymentInfo of the cart- Returns:
- true when setting PaymentInfo is successful
-
getPspLogoUrl
String getPspLogoUrl()Getting the Logo of the 3rd part payment service providers- Returns:
- the url of the payment service provider logo
-
getRefundRequestUrl
Getting the RefundRequestUrl to be send to the 3rd part payment service provider server- Parameters:
orderCode- The code of the order- Returns:
- the refund request Url of the 3rd part payment service provider if order can be refunded, otherwise return an empty Optional
-
updatePaymentInfoForPlaceOrder
Update payment info after place order- Parameters:
orderCode- The code of the order
-