Interface CommercePaymentEngine


public interface CommercePaymentEngine
  • 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

      int getCommercePaymentMethodType(long commerceOrderId) throws Exception
      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

      String getPaymentMethodName(String paymentMethodKey, Locale locale)
    • 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