Question by earthshine10 · Jan 10, 2018 at 12:12 PM · american_express
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 work without a problem.
Please see error details below.
Api Explorer
Action: Guest Checkout / Update Payment Information
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"
}
]
}
]
}
Answer by shulmani_developer.support · Jan 11, 2018 at 02:01 PM
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!!!
People who like this
Answer by shulmani_developer.support · Jan 11, 2018 at 12:43 PM
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!!
People who like this
Answer by earthshine10 · Jan 11, 2018 at 03:31 PM
API call returns 200 OK but it doesn't set PaymentMethodBrand field, if I use "AmEx"
"providedPaymentInstrument": {
"paymentMethodType": "CREDIT_CARD",
"paymentMethodBrand": {},
"paymentInstrumentReference": {
"lastFourDigitForCreditCard": "0005"
}
}
People who like this
Your answer
