• Resolved dtommy79

    (@dtommy79)


    I set up the sandbox correctly, the buttons are displayed on the checkout pages, but when i click on them the popup displays but disappears instantly and refreshes the browser.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author easypayment

    (@easypayment)

    Hello @dtommy79

    Could you please provide your website URL or provide video so we can resolve this issue real quick.

    Thanks.

    Thread Starter dtommy79

    (@dtommy79)

    Hi,

    Thanks for the reply. Here is a link to the video: https://youtu.be/iJFnXmDfr9k

    And here is the log:

    2020-11-17T07:25:05+00:00 INFO PayPal Checkout for WooCommerce Version: 4.0.1
    2020-11-17T07:25:05+00:00 INFO WooCommerce Version: 4.7.0
    2020-11-17T07:25:05+00:00 INFO Test Mode: Yes
    2020-11-17T07:25:05+00:00 INFO Endpoint: https://api.sandbox.paypal.com/v1/oauth2/token/
    2020-11-17T07:25:05+00:00 INFO Action Name : Get an access token => https://developer.paypal.com/docs/api/overview/#get-an-access-token
    2020-11-17T07:25:06+00:00 INFO Get access token Requesthttps://api.sandbox.paypal.com/v1/oauth2/token/
    2020-11-17T07:25:06+00:00 INFO Response Code: 200
    2020-11-17T07:25:06+00:00 INFO Response Message: OK
    2020-11-17T07:25:06+00:00 INFO Response Body: Array
    (
        [scope] => https://uri.paypal.com/services/vault/payment-tokens/read https://uri.paypal.com/services/disputes/read-buyer https://uri.paypal.com/services/payments/realtimepayment https://uri.paypal.com/services/disputes/update-seller https://uri.paypal.com/services/payments/payment/authcapture openid https://uri.paypal.com/services/disputes/read-seller Braintree:Vault https://uri.paypal.com/services/payments/refund https://api.paypal.com/v1/vault/credit-card https://api.paypal.com/v1/payments/.* https://uri.paypal.com/payments/payouts https://uri.paypal.com/services/vault/payment-tokens/readwrite https://api.paypal.com/v1/vault/credit-card/.* https://uri.paypal.com/services/subscriptions https://uri.paypal.com/services/applications/webhooks
        [access_token] => A21AAJl_zVmoU0BihBHQl_3Yn5A23MTSFJgcovczakpOZeZsKQb81gcnTVK3sr1PbHogLYN2wxGz2Dj8B5gecUUAgc7Jm9b-g
        [token_type] => Bearer
        [app_id] => APP-80W284485P519543T
        [expires_in] => 32400
        [nonce] => 2020-11-17T07:25:06ZzTamPMV50Dnsh-Mnkvw-50p72XDOf3JEowvaAedrzmc
    )
    
    2020-11-17T07:25:06+00:00 INFO PayPal Checkout for WooCommerce Version: 4.0.1
    2020-11-17T07:25:06+00:00 INFO WooCommerce Version: 4.7.0
    2020-11-17T07:25:06+00:00 INFO Test Mode: Yes
    2020-11-17T07:25:06+00:00 INFO Endpoint: https://api.sandbox.paypal.com/v2/checkout/orders/
    2020-11-17T07:25:06+00:00 INFO Action Name : Create order => https://developer.paypal.com/docs/api/orders/v2/#orders_create
    2020-11-17T07:25:06+00:00 INFO Request : Array
    (
        [intent] => CAPTURE
        [purchase_units] => Array
            (
                [0] => Array
                    (
                        [reference_id] => wc_order_r2ZCwa2MBmWhO
                        [amount] => Array
                            (
                                [currency_code] => USD
                                [value] => 47.95
                                [breakdown] => Array
                                    (
                                        [item_total] => Array
                                            (
                                                [currency_code] => USD
                                                [value] => 37.76
                                            )
    
                                        [tax_total] => Array
                                            (
                                                [currency_code] => USD
                                                [value] => 10.19
                                            )
    
                                    )
    
                            )
    
                        [items] => Array
                            (
                                [0] => Array
                                    (
                                        [name] => Armor Twist
                                        [quantity] => 1
                                        [unit_amount] => Array
                                            (
                                                [currency_code] => USD
                                                [value] => 37.76
                                            )
    
                                    )
    
                            )
    
                        [shipping] => Array
                            (
                                [address] => Array
                                    (
                                        [address_line_1] => Address 13
                                        [admin_area_2] => Budapest
                                        [admin_area_1] => BU
                                        [postal_code] => 1173
                                        [country_code] => HU
                                    )
    
                            )
    
                    )
    
            )
    
    )
    
    2020-11-17T07:25:06+00:00 INFO Response Code: 400
    2020-11-17T07:25:06+00:00 INFO Response Message: Bad Request
    2020-11-17T07:25:06+00:00 INFO Response Body: Array
    (
        [name] => INVALID_REQUEST
        [message] => Request is not well-formed, syntactically incorrect, or violates schema.
        [debug_id] => a14756567ffcc
        [details] => Array
            (
                [0] => Array
                    (
                        [field] => /purchase_units/@reference_id=='wc_order_r2ZCwa2MBmWhO'/amount/breakdown/tax_total/value
                        [value] => 10.1899999999999995026200849679298698902130126953125
                        [location] => body
                        [issue] => INVALID_STRING_LENGTH
                        [description] => The value of a field is either too short or too long.
                    )
    
                [1] => Array
                    (
                        [field] => /purchase_units/@reference_id=='wc_order_r2ZCwa2MBmWhO'/amount/breakdown/item_total/value
                        [value] => 37.75999999999999801048033987171947956085205078125
                        [location] => body
                        [issue] => INVALID_STRING_LENGTH
                        [description] => The value of a field is either too short or too long.
                    )
    
                [2] => Array
                    (
                        [field] => /purchase_units/@reference_id=='wc_order_r2ZCwa2MBmWhO'/items/0/unit_amount/value
                        [value] => 37.75999999999999801048033987171947956085205078125
                        [location] => body
                        [issue] => INVALID_STRING_LENGTH
                        [description] => The value of a field is either too short or too long.
                    )
    
                [3] => Array
                    (
                        [field] => /purchase_units/@reference_id=='wc_order_r2ZCwa2MBmWhO'/amount/value
                        [value] => 47.9500000000000028421709430404007434844970703125
                        [location] => body
                        [issue] => INVALID_STRING_LENGTH
                        [description] => The value of a field is either too short or too long.
                    )
    
            )
    
        [links] => Array
            (
                [0] => Array
                    (
                        [href] => https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_STRING_LENGTH
                        [rel] => information_link
                        [encType] => application/json
                    )
    
            )
    
    )
    Plugin Author easypayment

    (@easypayment)

    Hello @dtommy79

    We have started work on this issue and will release it by tomorrow with 4.0.2 version.

    Thanks.

    • This reply was modified 3 years, 11 months ago by easypayment.
    Thread Starter dtommy79

    (@dtommy79)

    Thanks

    Plugin Author easypayment

    (@easypayment)

    Hello @dtommy79

    We have resolved above issue and released 4.0.2 version.

    Please update plugin and try again and let me know if you are still getting error.

    Thanks.

    Thread Starter dtommy79

    (@dtommy79)

    It seems to be working now. Thanks

    Plugin Author easypayment

    (@easypayment)

    Hello @dtommy79

    we would love to know what you think of our product and customer support. If you have a moment to [ leave a review ] it would be greatly appreciated.

    • This reply was modified 3 years, 11 months ago by easypayment.
    Rajsekhar Chatterjee

    (@rajsekharchatterjee11)

    Hi,
    I’m getting the same error on checkout with a smart button( in version 4.0.4 ). Same error — https://youtu.be/iJFnXmDfr9k
    After reading this thread i have also checked version 4.0.2..But same issue.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘PayPal Checkout (Smart Payment Buttons) don’t work’ is closed to new replies.