• Resolved Byron Hasegawa

    (@byron222)


    I got this error every order when the customer use to pay amazon pay.

    01-27-2022 @ 20:57:24 - K4oPIs - WC_Gateway_Amazon_Payments_Advanced::process_payment - Info: Beginning processing of payment for order 40719 for the amount of 73,810.00 JPY. Checkout Session ID: f539c525-1351-4d31-8c39-f6c08db9f2f0.
    01-27-2022 @ 20:57:24 - K4oPIs - WC_Gateway_Amazon_Payments_Advanced::process_payment - Updating checkout session data for #40719.
    01-27-2022 @ 20:57:24 - K4oPIs - WC_Amazon_Payments_Advanced_API::update_checkout_session_data - Checkout Session ID f539c525-1351-4d31-8c39-f6c08db9f2f0
    {
        "data": {
            "paymentDetails": {
                "paymentIntent": "AuthorizeWithCapture",
                "canHandlePendingAuthorization": false,
                "chargeAmount": {
                    "amount": "73,810.00",
                    "currencyCode": "JPY"
                }
            },
            "merchantMetadata": {
                "merchantReferenceId": 40719,
                "merchantStoreName": "xxxxxxxxxxxxxxx",
                "customInformation": "WC_Gateway_Amazon_Pay\/2.1.0 \u3067\u4f5c\u6210 (Platform=WooCommerce\/6.1.1)"
            }
        },
        "headers": []
    }
    01-27-2022 @ 20:57:25 - K4oPIs - WC_Amazon_Payments_Advanced_API::update_checkout_session_data - ERROR. Checkout Session ID f539c525-1351-4d31-8c39-f6c08db9f2f0.
    {
        "status": 400,
        "method": "PATCH",
        "url": "https:\/\/pay-api.amazon.jp\/live\/v2\/checkoutSessions\/f539c525-1351-4d31-8c39-f6c08db9f2f0",
        "headers": [
            "accept:application\/json",
            "authorization:AMZN-PAY-RSASSA-PSS PublicKeyId=xxxxxxxxxxxxxxxxxx, SignedHeaders=accept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-region, Signature=fr0h0wR\/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+E8ClJ5nz3K+Ypl0hD1XajoLwQwpbcrMpszgiYPSUqz6Dx3+VgDiA9CDQEogmU5i5nK8+KkbVT0AB\/eNZ0mXYEA\/vsraIc0FG\/8AyhUpvpJA\/uECQ\/xxxxxxxxxxxxxxxxxxxxxxxxxxxx+do3G4BDBpt2F\/HclPhRfRfA\/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==",
            "content-type:application\/json",
            "user-agent:amazon-pay-api-sdk-php\/2.2.2 (PHP\/7.4.24; Linux\/x86_64\/3.10.0-1160.36.2.el7.x86_64)",
            "x-amz-pay-date:20220127T115724Z",
            "x-amz-pay-host:pay-api.amazon.jp",
            "x-amz-pay-region:jp"
        ],
        "request": "{\"paymentDetails\":{\"paymentIntent\":\"AuthorizeWithCapture\",\"canHandlePendingAuthorization\":false,\"chargeAmount\":{\"amount\":\"73,810.00\",\"currencyCode\":\"JPY\"}},\"merchantMetadata\":{\"merchantReferenceId\":40719,\"merchantStoreName\":\"xxxxxxxxxxxx\",\"customInformation\":\"WC_Gateway_Amazon_Pay\\\/2.1.0 \\u3067\\u4f5c\\u6210 (Platform=WooCommerce\\\/6.1.1)\"}}",
        "response": "{\"reasonCode\":\"InvalidParameterValue\",\"message\":\"The value '73,810.00' provided for 'chargeAmount.Amount' is invalid.\"}",
        "request_id": "xxxxxx-xxx-xxxxx-xxxxxx",
        "retries": 0,
        "duration": 475
    }
    01-27-2022 @ 20:57:25 - K4oPIs - WC_Gateway_Amazon_Payments_Advanced::process_payment - Error processing payment for order 40719. Checkout Session ID: f539c525-1351-4d31-8c39-f6c08db9f2f0
    {
        "errors": {
            "InvalidParameterValue": [
                "The value '73,810.00' provided for 'chargeAmount.Amount' is invalid."
            ]
        },
        "error_data": []
    }

    the error start to show after the lates version 2.1.0 update in 2022-01-10

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Fatal error when checkout with amazon pay’ is closed to new replies.