Skip to content

Instantly share code, notes, and snippets.

@nicoespeon
Created August 12, 2020 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicoespeon/fe3758fe5123a1bc267495d201a67a88 to your computer and use it in GitHub Desktop.
Save nicoespeon/fe3758fe5123a1bc267495d201a67a88 to your computer and use it in GitHub Desktop.
Request / response of /paymentMethods
{
"amount": { "currency": "USD", "value": 5160 },
"channel": "Web",
"countryCode": "US",
"merchantAccount": "BusbudUSA",
"shopperLocale": "en-us",
"shopperReference": 1
}
{
"groups": [
{
"name": "Credit Card",
"types": ["visa", "mc", "amex", "discover", "maestro", "diners"]
}
],
"paymentMethods": [
{
"brands": ["visa", "mc", "amex", "discover", "maestro", "diners"],
"details": [
{ "key": "number", "type": "text" },
{ "key": "expiryMonth", "type": "text" },
{ "key": "expiryYear", "type": "text" },
{ "key": "cvc", "type": "text" },
{ "key": "holderName", "optional": true, "type": "text" }
],
"name": "Credit Card",
"type": "scheme"
},
{
"details": [{ "key": "applepay.token", "type": "applePayToken" }],
"name": "Apple Pay",
"supportsRecurring": true,
"type": "applepay"
},
{
"configuration": { "merchantId": "1000" },
"details": [
{ "key": "paywithgoogle.token", "type": "payWithGoogleToken" }
],
"name": "Google Pay",
"supportsRecurring": true,
"type": "paywithgoogle"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment