-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The field 'checkoutMode' is invalid for this API. #9
Comments
Can you provide a sample of what your entire JSON request payload looks like? Note the page you are referencing, ...-apb-..., is a special type of checkout cataloged under the"Additional payment button" use case. I'm not sure if you were intending to use that use case or clicked it by accident. This use-case is intended when you do not wish for your buyer's to use Amazon Pay to obtain the shipping address from their Amazon Address Book, and instead, want the buyer to manually type in their full shipping address. Typically this would be done at the end of a checkout flow, instead of at the beginning. (The beginning is generally preferred, because it saves your buyers a lot of time and can make checkout much quicker with higher conversion rates if they don't need to type in any extra details.) The standard button flow documentation could be found here: |
I have two types of amazon pay checkouts. The first one is an express checkout (PayAndShip) with getCheckoutSession to retrieve shipping address. The second one is at the end of the checkout. Buyer entered the shipping address in my form. In the meantime I managed to get my scenario online. I switched the second checkout type to PayOnly without an shipping address, but I am not sure if I don't have any disadvantages (seller protection). Here is my payload array which was failing when I tried to send addressDetails in PayAndShip context:
|
Get the same issue The field "checkoutMode" is invalid for this API the API 2 on this guide |
Thanks for letting us know. We are checking with our internal engineering team, will keep post about updates or findings |
I'm misunderstanding the docs, just need the payload string, doesn't need to create the checkout session. Thanks. |
Hey guys! After two weeks of communication with those support, I know this problem. If you use
|
Has anyone had any luck getting this to work? With @shangamesh ?? |
Hi.
I am trying to create a new checkout session id at the end of my checkout process as described in:
https://amazonpaycheckoutintegrationguide.s3.amazonaws.com/amazon-pay-apb-checkout/add-the-amazon-pay-button.html
It's not working. I get the following reason code: {"reasonCode":"UnrecognizedField","message":"The field 'checkoutMode' is invalid for this API."}.
Please help.
Thanks Chris
The text was updated successfully, but these errors were encountered: