public class TestCommercePaymentMethod extends java.lang.Object implements CommercePaymentMethod
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY |
Constructor and Description |
---|
TestCommercePaymentMethod() |
Modifier and Type | Method and Description |
---|---|
boolean |
activateRecurringPayment(CommercePaymentRequest commercePaymentRequest) |
boolean |
cancelRecurringPayment(CommercePaymentRequest commercePaymentRequest) |
CommercePaymentResult |
completePayment(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() |
CommercePaymentResult |
processPayment(CommercePaymentRequest commercePaymentRequest) |
boolean |
suspendRecurringPayment(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(CommercePaymentRequest commercePaymentRequest) throws java.lang.Exception
activateRecurringPayment
in interface CommercePaymentMethod
java.lang.Exception
public boolean cancelRecurringPayment(CommercePaymentRequest commercePaymentRequest) throws java.lang.Exception
cancelRecurringPayment
in interface CommercePaymentMethod
java.lang.Exception
public CommercePaymentResult completePayment(CommercePaymentRequest commercePaymentRequest) throws java.lang.Exception
completePayment
in interface CommercePaymentMethod
java.lang.Exception
public java.lang.String getDescription(java.util.Locale locale)
getDescription
in interface CommercePaymentMethod
public java.lang.String getKey()
getKey
in interface CommercePaymentMethod
public java.lang.String getName(java.util.Locale locale)
getName
in interface CommercePaymentMethod
public int getPaymentType()
getPaymentType
in interface CommercePaymentMethod
public java.lang.String getServletPath()
getServletPath
in interface CommercePaymentMethod
public boolean isCancelRecurringEnabled()
isCancelRecurringEnabled
in interface CommercePaymentMethod
public boolean isCompleteEnabled()
isCompleteEnabled
in interface CommercePaymentMethod
public boolean isProcessPaymentEnabled()
isProcessPaymentEnabled
in interface CommercePaymentMethod
public boolean isProcessRecurringEnabled()
isProcessRecurringEnabled
in interface CommercePaymentMethod
public CommercePaymentResult processPayment(CommercePaymentRequest commercePaymentRequest) throws java.lang.Exception
processPayment
in interface CommercePaymentMethod
java.lang.Exception
public boolean suspendRecurringPayment(CommercePaymentRequest commercePaymentRequest) throws java.lang.Exception
suspendRecurringPayment
in interface CommercePaymentMethod
java.lang.Exception