question

earthshine10 avatar image
0 Likes"
earthshine10 asked ·

Unable to set AMERICAN_EXPRESS as a credit card brand

Hi, I can't update the payment information if I set "AMERICAN_EXPRESS" for the brand field. [Other brands][1] work without a problem. Please see error details below. **Api Explorer** Action: Guest Checkout / Update Payment Information **URL:** https://api.sandbox.ebay.com/buy/order/v1/guest_checkout_session/[checkout_session_id]/update_payment_info **Request Body:** { "creditCard": { "accountHolderName": "Frank Smith", "cardNumber": "378282246310005", "cvvNumber": "1269", "expireMonth": 10, "expireYear": 2019, "brand": "AMERICAN_EXPRESS", "billingAddress": { "firstName": "Frank", "lastName": "Smith", "addressLine1": "3737 Any St", "city": "San Jose", "stateOrProvince": "CA", "postalCode": "95134", "country": "US" } } } **Response Body:** { "errors": [ { "errorId": 15002, "domain": "API_ORDER", "category": "REQUEST", "message": "Invalid field : brand. The indicated field contains an invalid value. Correct the value and resubmit the call.", "inputRefIds": [ "$.brand" ], "parameters": [ { "name": "brand", "value": "AMERICAN_EXPRESS" }, { "name": "fieldName", "value": "brand" } ] } ] } [1]: https://developer.ebay.com/api-docs/buy/order/types/gct:PaymentMethodBrandEnum
american_express
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

shulmani_developer.support avatar image
0 Likes"
shulmani_developer.support answered ·
Hi, You need to set the Brand Value to "brand": "AmEx", This should fix the issue. The documentation has provided the values: https://developer.ebay.com/api-docs/buy/order/resources/guest_checkout_session/methods/updateGuestPaymentInfo#request.creditCard.brand Hope this helps. Cheers!!!
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

earthshine10 avatar image
0 Likes"
earthshine10 answered ·
@shulmani_developer.support, API call returns 200 OK but it doesn't set PaymentMethodBrand field, if I use "AmEx" "providedPaymentInstrument": { "paymentMethodType": "CREDIT_CARD", "paymentMethodBrand": {}, "paymentInstrumentReference": { "lastFourDigitForCreditCard": "0005" } }
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

earthshine10 avatar image
0 Likes"
earthshine10 answered ·
Hi @shulmani_developer.support, Item number is [110249141870][1]. [1]: http://cgi.sandbox.ebay.com/ws/eBayISAPI.dll?ViewItem⁢em=110249141870 Thank you.
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

shulmani_developer.support avatar image
0 Likes"
shulmani_developer.support answered ·
Hi, Can you please provide us the ItemID that is being checked out so that we can see if it even allows American express as one of the payment methods. Can you please provide that? Cheers!!
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.