Closed ChristianAF closed 3 years ago
From James Rodger: I don’t know if this helps, but it might be one extra data point. I was seeing the “Error: API is not responding” error today. Adding an error_log into the code for the response from the Amazon API gave me:
[14-May-2021 11:54:03 UTC] Array
(
[status] => 400
[method] => POST
[url] => https://pay-api.amazon.com/sandbox/v2/checkoutSessions
[headers] => Array
(
[0] => accept:application/json
[1] => authorization:AMZN-PAY-RSASSA-PSS PublicKeyId=8de3d8153b7f36d3f5bf836e66e6a68447c99dc8dc385b5d5d2ab321dc59f5e7, SignedHeaders=accept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-idempotency-key;x-amz-pay-region, Signature=jZ1xtjv/ZLeLmt++Gc7DXe+TKz13TD7sg8+i9EGaEMwscM8xuOpm5R8+cxbp4SQdnLpEp6tl4zKPUus7aVDpPODJlN63iOh+61oY+9s8nzMKNWuc4ET6C9MyIE+GIhH522LVMRD+3JjTfqTZaOlOK/esotX/oRXkY4FB0VHgNyezk73JkRteMGiY4ubjMHx7Hf6ny1wVPP2dNXQCQHpvV5SpiSJNFp1sHtH5Cvhxb0KQbP3gf7WqrINqZfOhurbbxAx1Mu88lV3JBmcigsGhCl7za2B9v6rjzWIXNH8q7S+PTSeOrARX3FgejwzH66/i7reONwh+LhnggQ6pAAKHng==
[2] => content-type:application/json
[3] => user-agent:amazon-pay-api-sdk-php/2.2.2 (PHP/7.4.19; Linux/x86_64/5.10.25-linuxkit)
[4] => x-amz-pay-date:20210514T115402Z
[5] => x-amz-pay-host:pay-api.amazon.com
[6] => x-amz-pay-region:us
[7] => x-amz-pay-Idempotency-Key:609e64da917fe
)
[request] => {"storeId":"amzn1.application-oa2-client.de483c5389ce453980319a6c2794768b","platformId":"A1BVJDFFHQ7US4","webCheckoutDetails":{"checkoutReviewReturnUrl":"https://jamesrodger.eu.ngrok.io/?page_id=7&amazon_payments_advanced=true&amazon_login=1","checkoutResultReturnUrl":"https://jamesrodger.eu.ngrok.io/?page_id=7&amazon_payments_advanced=true&amazon_return=1"}}
[response] => {"reasonCode":"InvalidHeaderValue","message":"The value 8de3d8153b7f36d3f5bf836e66e6a68447c99dc8dc385b5d5d2ab321dc59f5e7 provided for PublicKeyId is invalid. Please verify that you are using the PublicKeyId in the right region."}
[request_id] => 417c68d0-eb91-4249-b7eb-8746355dcb4f
[retries] => 0
[duration] => 483
)
Describe the bug "Error: API is not responding." After saving Key transfer
To Reproduce Steps to reproduce the behavior:
Screenshots
Expected behavior After saving no error should appear and Amazon Pay V2 migration should finish
Isolating the problem (mark completed items with an [x]):
WordPress Environment