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?
Tell us more…
Help us improve our content. Responses are anonymous.
Thanks
We appreciate your feedback!