Skip to main content

List payment methods

After you create a payment method for a user, use the following method to retrieve it.

adPayment.listPaymentMethods(userUUID, companyUUID)
.then(function(response) {
// return a summary of the payment methods
})
.error(function(error) {
// handle the error
});

Response

[
{
"id": "b8e44163-6542-4408-a6e7-eb8b8a88f23f",
"paymentMethodType": "CARD",
"properties": {
"cardHolderName": "John Doe",
"expirationMonth": "12",
"expirationYear": "2022",
"brand": "VISA",
"number": "1111"
},
"billingAddress": {
"street1": "279 Prince St",
"street2": "",
"city": "Montreal",
"country": "CA",
"state": "Quebec",
"zip": "H3C 2N4",
"phone": "8889871234"
},
"default": true
}
]

Was this page helpful?