Order reference constraints
An Order Reference object is eligible for payment authorization and capture only after you confirm the order reference by calling the ConfirmOrderReference operation. The ConfirmOrderReference operation call will succeed only if there are no constraints on the Order Reference object. Constraints indicate that important order reference information is either missing or invalid.
You can correct the order reference and remove the constraints before calling the ConfirmOrderReference operation. The following table lists the constraints and corrective action you need to take to remove the constraint:
ConstraintId | Description and correction |
AmountNotSet |
You haven't set the amount for the order reference.
Correction: Call the SetOrderReferenceDetails operation and specify the order amount in the OrderTotal request parameter. |
BuyerEqualsSeller |
The buyer can't be the seller for this transaction.
Correction: None. You can't shop on your own website. |
CurrencyMismatch |
The presentment currency that is passed to the Wallet widget doesn't match the currency code in the order reference.
Correction: Call the SetOrderReferenceDetails operation and specify the currency in the OrderTotal request parameter. |
PaymentMethodNotAllowed |
The payment method chosen by the buyer isn't allowed for this order reference.
Correction: Show the Amazon Wallet widget and request the buyer to choose a different payment method. |
PaymentPlanNotSet |
The buyer hasn't set a payment method for the given order reference.
Correction: Show the Amazon Wallet widget to the buyer to collect payment information. |
ShippingAddressNotSet |
The buyer hasn't chosen a shipping address from the Amazon AddressBook widget.
Correction: Show the Amazon AddressBook widget to the buyer to collect shipping information. |