Get available payment methods for a specific transaction or a purchase.
The payment methods order shown to a customer SHOULD be the same as the order in the response.
The list of available methods is generated from available Gateway Accounts
intersected with the last matched Rules Engine
adjust-ready-to-pay
action on ready-to-pay-requested
event.
If there were no actions matched for the specific request, then all methods supported by the Gateway Accounts are sent.
To invert this behavior place an all-matching rule at the very end of the ready-to-pay-requested
event in
Rules Engine with an empty paymentMethods
property of the adjust-ready-to-pay
action.
Payment methods retrieved.
method required | string The payment method. | ||||||
(Apple Pay Digital Wallet (object or null)) or (Google Pay Digital Wallet (object or null)) The specific feature (for example, digital wallet or a processor) of this method. If method doesn't have any features - will be null. | |||||||
One of: The specific feature (for example, digital wallet or a processor) of this method. If method doesn't have any features - will be null.
| |||||||
brands | Array of strings (PaymentCardBrand) non-empty The list of supported brands. | ||||||
filters | Array of strings (ReadyToPayMethodFilters) For the method to be applicable any of the following filters should match. If no filters are sent, then no restrictions applied. This follows our standard filter format. |
Unauthorized access, invalid credentials were used.
Access forbidden.
Invalid data was sent.
{- "currency": "USD",
- "amount": 0,
- "customerId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "websiteId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "billingAddress": {
- "firstName": "Benjamin",
- "lastName": "Franklin",
- "organization": "Rebilly",
- "address": "36 Craven St",
- "address2": "string",
- "city": "London",
- "region": "London",
- "country": "GB",
- "postalCode": "WC2N 5NF",
- "phoneNumbers": [
- {
- "label": "main",
- "value": "512-710-1640",
- "primary": true
}
], - "emails": [
- {
- "label": "main",
- "value": "rebilly@example.com",
- "primary": true
}
], - "dob": "1980-04-01",
- "jobTitle": "CEO"
}, - "riskMetadata": {
- "ipAddress": "93.92.91.90",
- "fingerprint": "pIUt3xbgX3l9g3YDiLbx",
- "httpHeaders": {
- "Content-Type": "application/json",
- "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
}, - "browserData": {
- "colorDepth": 24,
- "isJavaEnabled": true,
- "language": "en-US",
- "screenWidth": 1920,
- "screenHeight": 1080,
- "timeZoneOffset": 300
}, - "extraData": {
- "kountFraudSessionId": "abcdefg12345abababab123456789012",
- "payPalMerchantSessionId": "dd65ratxc5qv15iph3vyoq7l6davuowa",
- "threatMetrixSessionId": "dd65ratxc5qv15iph3vyoq7l6davuowadd65ratxc5qv15iph3vyoq7l6davuowa"
}
}
}
[- {
- "method": "payment-card",
- "feature": {
- "name": "Google Pay"
}, - "brands": [
- "Visa",
- "MasterCard"
], - "filters": [
- "brand:Visa,MasterCard;bin:!411111"
]
}, - {
- "method": "ach",
- "feature": {
- "name": "Plaid",
- "linkToken": "some-random-link_token-for-plaid",
- "expirationTime": "2006-01-02T15:04:05Z"
}
}, - {
- "method": "payment-card",
- "feature": null,
- "brands": [
- "Visa"
], - "filters": [
- "brand:Visa;bin:411111,444433"
]
}, - {
- "method": "ach",
- "feature": null,
- "filters": [ ]
}, - {
- "method": "paypal",
- "feature": {
- "name": "PayPal billing agreement",
- "paypalMerchantId": "123456abcd",
- "billingAgreementToken": "BA-XXXXXXXXXXXXXXXXX"
}, - "filters": [ ]
}, - {
- "method": "Skrill",
- "filters": [ ]
}
]