public class TestPaymentPluginApi extends Object implements PaymentPluginApiWithTestControl
| Constructor and Description |
|---|
TestPaymentPluginApi(String name) |
public TestPaymentPluginApi(String name)
public PaymentInfoPlugin processPayment(UUID accountId, UUID kbPaymentId, UUID kbPaymentMethodId, BigDecimal amount, Currency currency, CallContext context) throws PaymentPluginApiException
processPayment in interface PaymentPluginApiPaymentPluginApiExceptionpublic PaymentInfoPlugin getPaymentInfo(UUID accountId, UUID kbPaymentId, TenantContext context) throws PaymentPluginApiException
getPaymentInfo in interface PaymentPluginApiPaymentPluginApiExceptionpublic RefundInfoPlugin processRefund(UUID accountId, UUID kbPaymentId, BigDecimal refundAmount, Currency currency, CallContext context) throws PaymentPluginApiException
processRefund in interface PaymentPluginApiPaymentPluginApiExceptionpublic List<RefundInfoPlugin> getRefundInfo(UUID kbAccountId, UUID kbPaymentId, TenantContext context)
getRefundInfo in interface PaymentPluginApipublic void addPaymentMethod(UUID kbAccountId, UUID kbPaymentMethodId, PaymentMethodPlugin paymentMethodProps, boolean setDefault, CallContext context) throws PaymentPluginApiException
addPaymentMethod in interface PaymentPluginApiPaymentPluginApiExceptionpublic void deletePaymentMethod(UUID accountId, UUID kbPaymentMethodId, CallContext context) throws PaymentPluginApiException
deletePaymentMethod in interface PaymentPluginApiPaymentPluginApiExceptionpublic PaymentMethodPlugin getPaymentMethodDetail(UUID kbAccountId, UUID kbPaymentMethodId, TenantContext context) throws PaymentPluginApiException
getPaymentMethodDetail in interface PaymentPluginApiPaymentPluginApiExceptionpublic void setDefaultPaymentMethod(UUID accountId, UUID kbPaymentMethodId, CallContext context) throws PaymentPluginApiException
setDefaultPaymentMethod in interface PaymentPluginApiPaymentPluginApiExceptionpublic List<PaymentMethodInfoPlugin> getPaymentMethods(UUID kbAccountId, boolean refreshFromGateway, CallContext context) throws PaymentPluginApiException
getPaymentMethods in interface PaymentPluginApiPaymentPluginApiExceptionpublic List<PaymentMethodPlugin> searchPaymentMethods(String s, TenantContext tenantContext) throws PaymentPluginApiException
searchPaymentMethods in interface PaymentPluginApiPaymentPluginApiExceptionpublic void resetPaymentMethods(UUID accountId, List<PaymentMethodInfoPlugin> paymentMethods) throws PaymentPluginApiException
resetPaymentMethods in interface PaymentPluginApiPaymentPluginApiExceptionpublic void setPaymentPluginApiExceptionOnNextCalls(PaymentPluginApiException e)
setPaymentPluginApiExceptionOnNextCalls in interface PaymentPluginApiWithTestControlpublic void setPaymentRuntimeExceptionOnNextCalls(RuntimeException e)
setPaymentRuntimeExceptionOnNextCalls in interface PaymentPluginApiWithTestControlpublic void resetToNormalbehavior()
resetToNormalbehavior in interface PaymentPluginApiWithTestControlCopyright © 2010-2013. All Rights Reserved.