Files
adyen-curl/PostCardDetails.ps1
Julien Lengrand-Lambert 610eb4d5a9 For fun
2024-02-22 16:13:52 +01:00

24 lines
1.1 KiB
PowerShell

<#
Request: POST /cardDetails
Summary: Get the list of brands on the card
Description: Send a request with at least the first 6 digits of the card number to get a response with an array of brands on the card. If you include [your supported brands](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/cardDetails__reqParam_supportedBrands) in the request, the response also tells you if you support each [brand that was identified](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/cardDetails__resParam_details).
If you have an API-only integration and collect card data, use this endpoint to find out if the shopper's card is co-branded. For co-branded cards, you must let the shopper choose the brand to pay with if you support both brands.
#>
curl -X POST https://checkout-test.adyen.com/v71/cardDetails `
-H 'Accept: application/json' `
-H 'Content-Type: application/json' `
-d '{
"cardNumber": "cardNumber",
"countryCode": "countryCode",
"encryptedCardNumber": "encryptedCardNumber",
"merchantAccount": "merchantAccount",
"supportedBrands": [
""
]
}'