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 TypeMethodDescriptionboolean
activateRecurringPayment
(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) boolean
cancelRecurringPayment
(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) com.liferay.commerce.payment.result.CommercePaymentResult
completePayment
(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) getDescription
(Locale locale) getKey()
int
boolean
boolean
boolean
boolean
com.liferay.commerce.payment.result.CommercePaymentResult
processPayment
(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) boolean
suspendRecurringPayment
(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
activateRecurringPayment
in interfacecom.liferay.commerce.payment.method.CommercePaymentMethod
- Throws:
Exception
-
cancelRecurringPayment
public boolean cancelRecurringPayment(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) throws Exception - Specified by:
cancelRecurringPayment
in 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:
completePayment
in interfacecom.liferay.commerce.payment.method.CommercePaymentMethod
- Throws:
Exception
-
getDescription
- Specified by:
getDescription
in interfacecom.liferay.commerce.payment.method.CommercePaymentMethod
-
getKey
- Specified by:
getKey
in interfacecom.liferay.commerce.payment.method.CommercePaymentMethod
-
getName
- Specified by:
getName
in interfacecom.liferay.commerce.payment.method.CommercePaymentMethod
-
getPaymentType
public int getPaymentType()- Specified by:
getPaymentType
in interfacecom.liferay.commerce.payment.method.CommercePaymentMethod
-
getServletPath
- Specified by:
getServletPath
in interfacecom.liferay.commerce.payment.method.CommercePaymentMethod
-
isCancelRecurringEnabled
public boolean isCancelRecurringEnabled()- Specified by:
isCancelRecurringEnabled
in interfacecom.liferay.commerce.payment.method.CommercePaymentMethod
-
isCompleteEnabled
public boolean isCompleteEnabled()- Specified by:
isCompleteEnabled
in interfacecom.liferay.commerce.payment.method.CommercePaymentMethod
-
isProcessPaymentEnabled
public boolean isProcessPaymentEnabled()- Specified by:
isProcessPaymentEnabled
in interfacecom.liferay.commerce.payment.method.CommercePaymentMethod
-
isProcessRecurringEnabled
public boolean isProcessRecurringEnabled()- Specified by:
isProcessRecurringEnabled
in 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:
processPayment
in interfacecom.liferay.commerce.payment.method.CommercePaymentMethod
- Throws:
Exception
-
suspendRecurringPayment
public boolean suspendRecurringPayment(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) throws Exception - Specified by:
suspendRecurringPayment
in interfacecom.liferay.commerce.payment.method.CommercePaymentMethod
- Throws:
Exception
-