Skip to main content

Retrieve supported payment method types

Before you can create a payment method with payment.js, use the getSupportedPaymentMethodTypes method to determine which payment method types your marketplace supports.

note

Currently, credit cards are the only supported payment method types.

Example

adPayment.getSupportedPaymentMethodTypes()
.then(function(response) {
// render a form with the payment method definition
})
.error(function(error) {
// handle the error
});

Was this page helpful?