Skip to content

The Wallet widget should use the Address Book's order reference Id #30

Description

@limal

Your JavaScript code example at https://amzn.github.io/amazon-pay-sdk-samples/set.html is incorrect. It doesn't pass the order reference id from the Address Book widget to the Wallet widget which could result in PaymentPlanNotSet error later in the payment processing.

The Wallet widget should be initialised with the following property:

new OffAmazonPayments.Widgets.Wallet({
...
// Assign the same Order Reference ID you created in the address widget to the wallet widget as well. 
amazonOrderReferenceId: orderReferenceID,
...
}).bind("walletWidgetDiv");

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions