woocommerce / woocommerce-gateway-amazon-pay

Amazon Pay Gateway
20 stars 23 forks source link

Customer taken to blank page after paying for manually created order #6

Closed dwainm closed 11 months ago

dwainm commented 4 years ago

Customers paying for orders that have been manually created in wp-admin are taken to a blank screen. The payment is created, but must be manually authorised and captured by an administrator. If the card used requires SCA authorisation then the payment will fail.

To Reproduce Steps to reproduce the behavior:

Go to the Orders page in wp-admin Click on "Add Order" Create a new order and assign it to an existing customer Return to the store and login as the existing customer Navigate to My Account > Orders and click "Pay" Attempt to pay for the order with Amazon Pay and get redirected to a blank screen Logged on the server error log:

<ErrorResponse xmlns="http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01">
  <Error>
    <Type>Sender</Type>
    <Code>InvalidAddressConsentToken</Code>
    <Message>AddressConsentToken is not valid. It might have expired or not belong to the buyer on this contract or be a bad token entirely.</Message>
  </Error>
  <RequestId>aa8cc832-d64a-4336-bec9-19e9386791d7</RequestId>
</ErrorResponse>

Expected behavior The user can successfully pay for the order, or in the event of a problem with the payment, is shown an appropriate error message.

alexiglesias31 commented 11 months ago

Closing the ticket since the issue is not reproducible anymore.