public class TestCommercePaymentMethod
extends java.lang.Object
implements com.liferay.commerce.payment.method.CommercePaymentMethod
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY |
Constructor and Description |
---|
TestCommercePaymentMethod() |
Modifier and Type | Method and Description |
---|---|
boolean |
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) |
java.lang.String |
getDescription(java.util.Locale locale) |
java.lang.String |
getKey() |
java.lang.String |
getName(java.util.Locale locale) |
int |
getPaymentType() |
java.lang.String |
getServletPath() |
boolean |
isCancelRecurringEnabled() |
boolean |
isCompleteEnabled() |
boolean |
isProcessPaymentEnabled() |
boolean |
isProcessRecurringEnabled() |
com.liferay.commerce.payment.result.CommercePaymentResult |
processPayment(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) |
boolean |
suspendRecurringPayment(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
authorizePayment, cancelPayment, capturePayment, completeRecurringPayment, getOrderStatusUpdateMaxIntervalMinutes, getSubscriptionPaymentDetails, getSubscriptionValidity, isAuthorizeEnabled, isCancelEnabled, isCaptureEnabled, isCompleteRecurringEnabled, isPartialRefundEnabled, isPostProcessEnabled, isRefundEnabled, isVoidEnabled, partiallyRefundPayment, postProcessPayment, processRecurringPayment, refundPayment, voidTransaction
public static final java.lang.String KEY
public boolean activateRecurringPayment(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) throws java.lang.Exception
activateRecurringPayment
in interface com.liferay.commerce.payment.method.CommercePaymentMethod
java.lang.Exception
public boolean cancelRecurringPayment(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) throws java.lang.Exception
cancelRecurringPayment
in interface com.liferay.commerce.payment.method.CommercePaymentMethod
java.lang.Exception
public com.liferay.commerce.payment.result.CommercePaymentResult completePayment(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) throws java.lang.Exception
completePayment
in interface com.liferay.commerce.payment.method.CommercePaymentMethod
java.lang.Exception
public java.lang.String getDescription(java.util.Locale locale)
getDescription
in interface com.liferay.commerce.payment.method.CommercePaymentMethod
public java.lang.String getKey()
getKey
in interface com.liferay.commerce.payment.method.CommercePaymentMethod
public java.lang.String getName(java.util.Locale locale)
getName
in interface com.liferay.commerce.payment.method.CommercePaymentMethod
public int getPaymentType()
getPaymentType
in interface com.liferay.commerce.payment.method.CommercePaymentMethod
public java.lang.String getServletPath()
getServletPath
in interface com.liferay.commerce.payment.method.CommercePaymentMethod
public boolean isCancelRecurringEnabled()
isCancelRecurringEnabled
in interface com.liferay.commerce.payment.method.CommercePaymentMethod
public boolean isCompleteEnabled()
isCompleteEnabled
in interface com.liferay.commerce.payment.method.CommercePaymentMethod
public boolean isProcessPaymentEnabled()
isProcessPaymentEnabled
in interface com.liferay.commerce.payment.method.CommercePaymentMethod
public boolean isProcessRecurringEnabled()
isProcessRecurringEnabled
in interface com.liferay.commerce.payment.method.CommercePaymentMethod
public com.liferay.commerce.payment.result.CommercePaymentResult processPayment(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) throws java.lang.Exception
processPayment
in interface com.liferay.commerce.payment.method.CommercePaymentMethod
java.lang.Exception
public boolean suspendRecurringPayment(com.liferay.commerce.payment.request.CommercePaymentRequest commercePaymentRequest) throws java.lang.Exception
suspendRecurringPayment
in interface com.liferay.commerce.payment.method.CommercePaymentMethod
java.lang.Exception