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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanactivateRecurringPayment(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) booleancancelRecurringPayment(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) com.liferay.commerce.payment.result.CommercePaymentResultcompletePayment(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) getDescription(Locale locale) getKey()intbooleanbooleanbooleanbooleancom.liferay.commerce.payment.result.CommercePaymentResultprocessPayment(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) booleansuspendRecurringPayment(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.commerce.payment.method.CommercePaymentMethod
authorizePayment, cancelPayment, capturePayment, completeRecurringPayment, getOrderStatusUpdateMaxIntervalMinutes, getSubscriptionPaymentDetails, getSubscriptionValidity, isAuthorizeEnabled, isCancelEnabled, isCaptureEnabled, isCompleteRecurringEnabled, isPartialRefundEnabled, isPostProcessEnabled, isRefundEnabled, isVoidEnabled, partiallyRefundPayment, postProcessPayment, processRecurringPayment, refundPayment, voidTransaction
-
Field Details
-
KEY
- See Also:
-
-
Constructor Details
-
TestCommercePaymentMethod
public TestCommercePaymentMethod()
-
-
Method Details
-
activateRecurringPayment
public boolean activateRecurringPayment(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) throws Exception - Specified by:
activateRecurringPaymentin interfacecom.liferay.commerce.payment.method.CommercePaymentMethod- Throws:
Exception
-
cancelRecurringPayment
public boolean cancelRecurringPayment(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) throws Exception - Specified by:
cancelRecurringPaymentin interfacecom.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:
completePaymentin interfacecom.liferay.commerce.payment.method.CommercePaymentMethod- Throws:
Exception
-
getDescription
- Specified by:
getDescriptionin interfacecom.liferay.commerce.payment.method.CommercePaymentMethod
-
getKey
- Specified by:
getKeyin interfacecom.liferay.commerce.payment.method.CommercePaymentMethod
-
getName
- Specified by:
getNamein interfacecom.liferay.commerce.payment.method.CommercePaymentMethod
-
getPaymentType
public int getPaymentType()- Specified by:
getPaymentTypein interfacecom.liferay.commerce.payment.method.CommercePaymentMethod
-
getServletPath
- Specified by:
getServletPathin interfacecom.liferay.commerce.payment.method.CommercePaymentMethod
-
isCancelRecurringEnabled
public boolean isCancelRecurringEnabled()- Specified by:
isCancelRecurringEnabledin interfacecom.liferay.commerce.payment.method.CommercePaymentMethod
-
isCompleteEnabled
public boolean isCompleteEnabled()- Specified by:
isCompleteEnabledin interfacecom.liferay.commerce.payment.method.CommercePaymentMethod
-
isProcessPaymentEnabled
public boolean isProcessPaymentEnabled()- Specified by:
isProcessPaymentEnabledin interfacecom.liferay.commerce.payment.method.CommercePaymentMethod
-
isProcessRecurringEnabled
public boolean isProcessRecurringEnabled()- Specified by:
isProcessRecurringEnabledin interfacecom.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:
processPaymentin interfacecom.liferay.commerce.payment.method.CommercePaymentMethod- Throws:
Exception
-
suspendRecurringPayment
public boolean suspendRecurringPayment(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) throws Exception - Specified by:
suspendRecurringPaymentin interfacecom.liferay.commerce.payment.method.CommercePaymentMethod- Throws:
Exception
-