Interface CommercePaymentEngine
public interface CommercePaymentEngine
-
Method Summary
Modifier and TypeMethodDescriptioncancelPayment
(long commerceOrderId, String transactionId, javax.servlet.http.HttpServletRequest httpServletRequest) capturePayment
(long commerceOrderId, String transactionId, javax.servlet.http.HttpServletRequest httpServletRequest) completePayment
(long commerceOrderId, String transactionId, javax.servlet.http.HttpServletRequest httpServletRequest) getCommerceOrderPaymentMethodName
(CommerceOrder commerceOrder, javax.servlet.http.HttpServletRequest httpServletRequest, Locale locale) int
getCommercePaymentMethodGroupRelsCount
(long groupId) int
getCommercePaymentMethodType
(long commerceOrderId) getEnabledCommercePaymentMethodsForOrder
(long groupId, long commerceOrderId) getPaymentMethodImageURL
(long groupId, String paymentMethodKey, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) getPaymentMethodName
(String paymentMethodKey, Locale locale) partiallyRefundPayment
(long commerceOrderId, String transactionId, javax.servlet.http.HttpServletRequest httpServletRequest) postProcessPayment
(long commerceOrderId, String transactionId, javax.servlet.http.HttpServletRequest httpServletRequest) processPayment
(long commerceOrderId, String nextUrl, javax.servlet.http.HttpServletRequest httpServletRequest) refundPayment
(long commerceOrderId, String transactionId, javax.servlet.http.HttpServletRequest httpServletRequest) updateOrderPaymentStatus
(long commerceOrderId, int paymentStatus, String transactionId, String result) voidTransaction
(long commerceOrderId, String transactionId, javax.servlet.http.HttpServletRequest httpServletRequest)
-
Method Details
-
cancelPayment
CommercePaymentResult cancelPayment(long commerceOrderId, String transactionId, javax.servlet.http.HttpServletRequest httpServletRequest) throws Exception - Throws:
Exception
-
capturePayment
CommercePaymentResult capturePayment(long commerceOrderId, String transactionId, javax.servlet.http.HttpServletRequest httpServletRequest) throws Exception - Throws:
Exception
-
completePayment
CommercePaymentResult completePayment(long commerceOrderId, String transactionId, javax.servlet.http.HttpServletRequest httpServletRequest) throws Exception - Throws:
Exception
-
getCommerceOrderPaymentMethodName
String getCommerceOrderPaymentMethodName(CommerceOrder commerceOrder, javax.servlet.http.HttpServletRequest httpServletRequest, Locale locale) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommercePaymentMethodGroupRelsCount
int getCommercePaymentMethodGroupRelsCount(long groupId) -
getCommercePaymentMethodType
- Throws:
Exception
-
getEnabledCommercePaymentMethodsForOrder
List<CommercePaymentMethod> getEnabledCommercePaymentMethodsForOrder(long groupId, long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPaymentMethodImageURL
String getPaymentMethodImageURL(long groupId, String paymentMethodKey, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPaymentMethodName
-
partiallyRefundPayment
CommercePaymentResult partiallyRefundPayment(long commerceOrderId, String transactionId, javax.servlet.http.HttpServletRequest httpServletRequest) throws Exception - Throws:
Exception
-
postProcessPayment
CommercePaymentResult postProcessPayment(long commerceOrderId, String transactionId, javax.servlet.http.HttpServletRequest httpServletRequest) throws Exception - Throws:
Exception
-
processPayment
CommercePaymentResult processPayment(long commerceOrderId, String nextUrl, javax.servlet.http.HttpServletRequest httpServletRequest) throws Exception - Throws:
Exception
-
refundPayment
CommercePaymentResult refundPayment(long commerceOrderId, String transactionId, javax.servlet.http.HttpServletRequest httpServletRequest) throws Exception - Throws:
Exception
-
updateOrderPaymentStatus
CommerceOrder updateOrderPaymentStatus(long commerceOrderId, int paymentStatus, String transactionId, String result) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
voidTransaction
CommercePaymentResult voidTransaction(long commerceOrderId, String transactionId, javax.servlet.http.HttpServletRequest httpServletRequest) throws Exception - Throws:
Exception
-