Search in sources :

Example 1 with TestPaymentMethodPlugin

use of org.killbill.billing.payment.api.TestPaymentMethodPlugin in project killbill by killbill.

the class MockPaymentProviderPlugin method addPaymentMethod.

@Override
public void addPaymentMethod(final UUID kbAccountId, final UUID kbPaymentMethodId, final PaymentMethodPlugin paymentMethodProps, final boolean setDefault, final Iterable<PluginProperty> properties, final CallContext context) throws PaymentPluginApiException {
    // externalPaymentMethodId is set to a random value
    final PaymentMethodPlugin realWithID = new TestPaymentMethodPlugin(kbPaymentMethodId, paymentMethodProps, UUID.randomUUID().toString());
    paymentMethods.put(kbPaymentMethodId.toString(), realWithID);
    final PaymentMethodInfoPlugin realInfoWithID = new DefaultPaymentMethodInfoPlugin(kbAccountId, kbPaymentMethodId, setDefault, UUID.randomUUID().toString());
    paymentMethodsInfo.put(kbPaymentMethodId.toString(), realInfoWithID);
}
Also used : PaymentMethodInfoPlugin(org.killbill.billing.payment.plugin.api.PaymentMethodInfoPlugin) TestPaymentMethodPlugin(org.killbill.billing.payment.api.TestPaymentMethodPlugin) PaymentMethodPlugin(org.killbill.billing.payment.api.PaymentMethodPlugin) TestPaymentMethodPlugin(org.killbill.billing.payment.api.TestPaymentMethodPlugin)

Aggregations

PaymentMethodPlugin (org.killbill.billing.payment.api.PaymentMethodPlugin)1 TestPaymentMethodPlugin (org.killbill.billing.payment.api.TestPaymentMethodPlugin)1 PaymentMethodInfoPlugin (org.killbill.billing.payment.plugin.api.PaymentMethodInfoPlugin)1