amzn / amzn/amazon-pay-api-sdk-php

The field 'checkoutMode' is invalid for this API.

Open
#9 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
51
Forks
33
PR merge metrics
No merged PRs in 30d

Description

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](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

Contributor guide

Open the contributing guide

Research direction

No repository file or test is named. Start by reviewing the linked Amazon Pay checkout integration guide and the SDK entry point used to create the checkout session, then reproduce the request and its UnrecognizedField response. Done means the supported API request is identified and the issue's compatibility or required change is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, payments
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.