Created
August 12, 2020 19:12
-
-
Save nicoespeon/fe3758fe5123a1bc267495d201a67a88 to your computer and use it in GitHub Desktop.
Request / response of /paymentMethods
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"amount": { "currency": "USD", "value": 5160 }, | |
"channel": "Web", | |
"countryCode": "US", | |
"merchantAccount": "BusbudUSA", | |
"shopperLocale": "en-us", | |
"shopperReference": 1 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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