eBay Developers Program
  • Forums Sign in
  • My Account
    • My Developer Account
    • Solutions Directory
    • Applications Settings
  • Forums
    • Orders, Returns and Feedback
    • Java SDK for Trading API
    • Search
    • Selling
    • Talk to Your Fellow Devs
    • .Net SDK for Trading API
    • Tokens, Notifications, Messages
    • Feedback & Suggestions
  • Documentation
    • Release Notes
    • Finding API
    • Shopping API
    • Trading API
    • Large Merchant Services
    • Marketing Handbook
    • All Features Comparison
    • All API Documentation
  • Support
    • eBay SDKs
    • API Site Status
    • Program & News Blog
    • Compatible Application Check
    • Support Ticket
    • Knowledge Base
    • Developer Help Center
    • Search Details
  • Home
  • eBay Forums
  • Buy APIs (BETA) - Order /
avatar image

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

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"
         }
       ]
     }
   ]
 }


People who like this

0
Comment
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

4 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

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!!!

Comment

People who like this

0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

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!!

Comment

People who like this

0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by earthshine10 · Jan 11, 2018 at 12:51 PM

Hi @shulmani_developer.support,

Item number is 110249141870.

Thank you.

Comment

People who like this

0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by earthshine10 · Jan 11, 2018 at 03:31 PM

@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"
     }
   }
Comment

People who like this

0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

15 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image


Support

Developer Help Center
eBay Developers Program Blog
API Site Status
Request Support
Knowledge Base
Developer Forums
eBay Software Development Kits

API Information

API License Agreement
API Documentation
API Call Limits
Marketing Handbook
API Features Comparison

Apps Center

Applications Directory
Solutions Directory

Social Media

     

Programs

About Us
Success Stories
Affiliate Developers
eBay Market Data Program
Developer Directory
Developer Jobs
Copyright 1999 - 2019 eBay Inc. All rights reserved. User Agreement | Privacy Policy.    Site Feedback
  • Anonymous
  • Login with eBay
  • Create
  • Ask a question
  • Forums
  • Buy APIs (BETA) - Browse
  • Buy APIs (BETA) - Order
  • Feedback, Comments, Suggestions
  • New Sell APIs - Account, Inventory, Catalog and Compliance
  • New Sell APIs - Fulfillment
  • New Sell APIs - Marketing, Analytics, Metadata
  • Post Order APIs - Cancellation
  • Post Order APIs - Inquiry, Case Management
  • Post Order APIs - Return
  • Product-Based Selling Experience
  • Token, Messaging, Sandbox related issues
  • eBay APIs: .NET SDK for Trading API
  • eBay APIs: Java SDK for Trading API
  • eBay APIs: Orders, resolutions and feedback
  • eBay APIs: Search
  • eBay APIs: Selling
  • eBay APIs: Talk to your fellow developers
  • Explore
  • Tags
  • Questions
  • Users
  • Badges