Class TestCommercePaymentMethod

java.lang.Object
com.liferay.commerce.payment.test.util.TestCommercePaymentMethod
All Implemented Interfaces:
com.liferay.commerce.payment.method.CommercePaymentMethod

public class TestCommercePaymentMethod extends Object implements com.liferay.commerce.payment.method.CommercePaymentMethod
  • Field Details

  • Constructor Details

    • TestCommercePaymentMethod

      public TestCommercePaymentMethod()
  • Method Details

    • activateRecurringPayment

      public boolean activateRecurringPayment(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) throws Exception
      Specified by:
      activateRecurringPayment in interface com.liferay.commerce.payment.method.CommercePaymentMethod
      Throws:
      Exception
    • cancelRecurringPayment

      public boolean cancelRecurringPayment(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) throws Exception
      Specified by:
      cancelRecurringPayment in interface com.liferay.commerce.payment.method.CommercePaymentMethod
      Throws:
      Exception
    • completePayment

      public com.liferay.commerce.payment.result.CommercePaymentResult completePayment(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) throws Exception
      Specified by:
      completePayment in interface com.liferay.commerce.payment.method.CommercePaymentMethod
      Throws:
      Exception
    • getDescription

      public String getDescription(Locale locale)
      Specified by:
      getDescription in interface com.liferay.commerce.payment.method.CommercePaymentMethod
    • getKey

      public String getKey()
      Specified by:
      getKey in interface com.liferay.commerce.payment.method.CommercePaymentMethod
    • getName

      public String getName(Locale locale)
      Specified by:
      getName in interface com.liferay.commerce.payment.method.CommercePaymentMethod
    • getPaymentType

      public int getPaymentType()
      Specified by:
      getPaymentType in interface com.liferay.commerce.payment.method.CommercePaymentMethod
    • getServletPath

      public String getServletPath()
      Specified by:
      getServletPath in interface com.liferay.commerce.payment.method.CommercePaymentMethod
    • isCancelRecurringEnabled

      public boolean isCancelRecurringEnabled()
      Specified by:
      isCancelRecurringEnabled in interface com.liferay.commerce.payment.method.CommercePaymentMethod
    • isCompleteEnabled

      public boolean isCompleteEnabled()
      Specified by:
      isCompleteEnabled in interface com.liferay.commerce.payment.method.CommercePaymentMethod
    • isProcessPaymentEnabled

      public boolean isProcessPaymentEnabled()
      Specified by:
      isProcessPaymentEnabled in interface com.liferay.commerce.payment.method.CommercePaymentMethod
    • isProcessRecurringEnabled

      public boolean isProcessRecurringEnabled()
      Specified by:
      isProcessRecurringEnabled in interface com.liferay.commerce.payment.method.CommercePaymentMethod
    • processPayment

      public com.liferay.commerce.payment.result.CommercePaymentResult processPayment(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) throws Exception
      Specified by:
      processPayment in interface com.liferay.commerce.payment.method.CommercePaymentMethod
      Throws:
      Exception
    • suspendRecurringPayment

      public boolean suspendRecurringPayment(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) throws Exception
      Specified by:
      suspendRecurringPayment in interface com.liferay.commerce.payment.method.CommercePaymentMethod
      Throws:
      Exception