• Resolved saney

    (@saney)


    Hello, I have the same problem. Here is the log. How can I troubleshoot it?

    https://ww.wp.xz.cn/support/topic/error-403-60/

    Log:

    2025-05-09T02:02:52+00:00 ERROR API error: Array
    (
    [url] => https://api-m.paypal.com/v2/checkout/orders
    [method] => POST
    [http_status] => 403
    [request] => Array
    (
    [intent] => CAPTURE
    [payer] => Array
    (
    [name] => Array
    (
    [given_name] => sss
    [surname] => fr-Dolengowski
    )

    [address] => Array
    (
    [address_line_1] => 34 Allée Turcat Méry
    [address_line_2] =>
    [admin_area_1] =>
    [admin_area_2] => Marseille
    [postal_code] => 93508
    [country_code] => FR
    )

    [email_address] => [email protected]
    )

    [purchase_units] => Array
    (
    [0] => Array
    (
    [amount] => Array
    (
    [value] => 72.54
    [currency_code] => EUR
    [breakdown] => Array
    (
    [item_total] => Array
    (
    [currency_code] => EUR
    [value] => 45.54
    )

    [shipping] => Array
    (
    [currency_code] => EUR
    [value] => 27.00
    )

    [tax_total] => Array
    (
    [value] => 0.00
    [currency_code] => EUR
    )

    [discount] => Array
    (
    [value] => 0.00
    [currency_code] => EUR
    )

    [handling] => Array
    (
    [currency_code] => EUR
    [value] => 0.00
    )

    )

    )

    [items] => Array
    (
    [0] => Array
    (
    [name] => ***********
    [quantity] => 1
    [unit_amount] => Array
    (
    [currency_code] => EUR
    [value] => 45.54
    )

    [sku] => WD-A-A-8-1-3
    [description] => Product ID: 216
    )

    )

    [shipping] => Array
    (
    [name] => Array
    (
    [full_name] => sss fr-Dolengowski
    )

    [address] => Array
    (
    [address_line_1] => 34 Allée Turcat Méry
    [address_line_2] =>
    [admin_area_1] =>
    [admin_area_2] => Marseille
    [postal_code] => 93508
    [country_code] => FR
    )

    )

    )

    )

    [application_context] => Array
    (
    [shipping_preference] => SET_PROVIDED_ADDRESS
    [return_url] => https://www.***********/wc-api/ppcp_checkout_return/?_checkoutnonce=d1dd664659
    [cancel_url] => https://www.***********/checkout/
    [brand_name] => ***********
    )

    )

    [error] =>
    )
    2025-05-09T02:02:52+00:00 ERROR Error creating PayPal order. Msg: Params: Array
    (
    [intent] => CAPTURE
    [payer] => Array
    (
    [name] => Array
    (
    [given_name] => sss
    [surname] => fr-Dolengowski
    )

    [address] => Array
    (
    [address_line_1] => 34 Allée Turcat Méry
    [address_line_2] =>
    [admin_area_1] =>
    [admin_area_2] => Marseille
    [postal_code] => 93508
    [country_code] => FR
    )

    [email_address] => [email protected]
    )

    [purchase_units] => Array
    (
    [0] => Array
    (
    [amount] => Array
    (
    [value] => 72.54
    [currency_code] => EUR
    [breakdown] => Array
    (
    [item_total] => Array
    (
    [currency_code] => EUR
    [value] => 45.54
    )

    [shipping] => Array
    (
    [currency_code] => EUR
    [value] => 27.00
    )

    [tax_total] => Array
    (
    [value] => 0.00
    [currency_code] => EUR
    )

    [discount] => Array
    (
    [value] => 0.00
    [currency_code] => EUR
    )

    [handling] => Array
    (
    [currency_code] => EUR
    [value] => 0.00
    )

    )

    )

    [items] => Array
    (
    [0] => Array
    (
    [name] => ***********
    [quantity] => 1
    [unit_amount] => Array
    (
    [currency_code] => EUR
    [value] => 45.54
    )

    [sku] => WD-A-A-8-1-3
    [description] => Product ID: 216
    )

    )

    [shipping] => Array
    (
    [name] => Array
    (
    [full_name] => sss fr-Dolengowski
    )

    [address] => Array
    (
    [address_line_1] => 34 Allée Turcat Méry
    [address_line_2] =>
    [admin_area_1] =>
    [admin_area_2] => Marseille
    [postal_code] => 93508
    [country_code] => FR
    )

    )

    )

    )

    [application_context] => Array
    (
    [shipping_preference] => SET_PROVIDED_ADDRESS
    [return_url] => https://www.***********/wc-api/ppcp_checkout_return/?_checkoutnonce=d1dd664659
    [cancel_url] => https://www.***********/checkout/
    [brand_name] => ***********
    )

    )

    console:

    wc-ajax=wc_ppcp_frontend_request&path=%2Fwc-ppcp%2Fv1%2Fcart%2Forder&_locale=user 400 (Bad Request)

    create_order_error {err: ”, timestamp: ‘1746756172986’, referer: ‘www.paypal.com’, sdkCorrelationID: ‘prebuild’, sessionID: ‘uid_32917e409d_mdi6mdi6mzc’, …}

    click_initiate_payment_reject {err: ‘[object Object]’, timestamp: ‘1746756172994’, referer: ‘www.paypal.com’, sdkCorrelationID: ‘prebuild’, sessionID: ‘uid_32917e409d_mdi6mdi6mzc’, …}

    unhandled_error {err: ‘[object Object]’, timestamp: ‘1746756172998’, referer: ‘www.paypal.com’, sdkCorrelationID: ‘prebuild’, sessionID: ‘uid_32917e409d_mdi6mdi6mzc’, …}

    {code: ‘rest-error’, message: ”, data: {…}}

    Response: {“code”:”rest-error”,”message”:””,”data”:{“status”:400}}

    WC Version: 9.8.4
    Log Directory Writable: ✔
    WP Version: ❌ 6.7.1
    WP Cron: ✔
    Language: en_US
    External object cache: ✔
    Server Info: nginx/1.25.5
    PHP Version: 7.4.23
    PHP Post Max Size: 50 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 1000
    cURL Version: 7.29.0
    NSS/3.90
    WC Database Version: 9.8.4
    Payment Plugins for PayPal WooCommerce: From Payment Plugins
    [email protected] – 1.0.55
Viewing 1 replies (of 1 total)
  • Plugin Author Clayton R

    (@mrclayton)

    Hi @saney

    Do you receive this error whether you have sandbox or production enabled?

    did you manually enter your client ID and secret or did you use the Connect process? If you used the Connect process, I recommend you re-connect.

    Make sure the PayPal API’s are not blocked as some hosting companies block outbound requests by default.

    Kind Regards

Viewing 1 replies (of 1 total)

The topic ‘rest-error 403’ is closed to new replies.