Title: Error 403
Last modified: August 21, 2023

---

# Error 403

 *  Resolved [marocweb](https://wordpress.org/support/users/marocweb/)
 * (@marocweb)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-403-60/)
 * Hi,
 * On a client’s website, when clicking on the PayPal payment button, I get an “
   Indefinite” error message. In the logs I have this:
 *     ```wp-block-code
       2023-08-21T11:18:52+00:00 ERROR API error: Array
       (
           [url] => https://api-m.paypal.com/v2/checkout/orders
           [method] => POST
           [http_status] => 403
           [request] => PaymentPlugins\PayPalSDK\Order Object
       (
           [_values:protected] => Array
               (
                   [intent] => CAPTURE
                   [payer] => PaymentPlugins\PayPalSDK\Payer Object
                       (
                           [_values:protected] => Array
                               (
                                   [name] => PaymentPlugins\PayPalSDK\Name Object
                                       (
                                           [_values:protected] => Array
                                               (
                                                   [given_name] => *****
                                                   [surname] => *****
                                               )
   
                                           [mappings:protected] => Array
                                               (
                                               )
   
                                           [index:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                           [patchRequest:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                       )
   
                                   [address] => PaymentPlugins\PayPalSDK\Address Object
                                       (
                                           [_values:protected] => Array
                                               (
                                                   [address_line_1] => ******
                                                   [address_line_2] => 
                                                   [admin_area_1] => 
                                                   [admin_area_2] => ****
                                                   [postal_code] => ******
                                                   [country_code] => FR
                                               )
   
                                           [mappings:protected] => Array
                                               (
                                               )
   
                                           [index:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                           [patchRequest:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                       )
   
                                   [email_address] => ******
                               )
   
                           [mappings:protected] => Array
                               (
                               )
   
                           [index:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                           [patchRequest:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                       )
   
                   [purchase_units] => PaymentPlugins\PayPalSDK\Collection Object
                       (
                           [_values:protected] => Array
                               (
                                   [0] => PaymentPlugins\PayPalSDK\PurchaseUnit Object
                                       (
                                           [_values:protected] => Array
                                               (
                                                   [amount] => PaymentPlugins\PayPalSDK\Amount Object
                                                       (
                                                           [_values:protected] => Array
                                                               (
                                                                   [value] => 29.90
                                                                   [currency_code] => EUR
                                                                   [breakdown] => PaymentPlugins\PayPalSDK\Breakdown Object
                                                                       (
                                                                           [_values:protected] => Array
                                                                               (
                                                                                   [item_total] => PaymentPlugins\PayPalSDK\Money Object
                                                                                       (
                                                                                           [_values:protected] => Array
                                                                                               (
                                                                                                   [currency_code] => EUR
                                                                                                   [value] => 25.00
                                                                                               )
   
                                                                                           [mappings:protected] => Array
                                                                                               (
                                                                                               )
   
                                                                                           [index:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                                                           [patchRequest:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                                                       )
   
                                                                                   [shipping] => PaymentPlugins\PayPalSDK\Amount Object
                                                                                       (
                                                                                           [_values:protected] => Array
                                                                                               (
                                                                                                   [currency_code] => EUR
                                                                                                   [value] => 4.90
                                                                                               )
   
                                                                                           [mappings:protected] => Array
                                                                                               (
                                                                                               )
   
                                                                                           [index:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                                                           [patchRequest:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                                                       )
   
                                                                                   [tax_total] => PaymentPlugins\PayPalSDK\Money Object
                                                                                       (
                                                                                           [_values:protected] => Array
                                                                                               (
                                                                                                   [value] => 0.00
                                                                                                   [currency_code] => EUR
                                                                                               )
   
                                                                                           [mappings:protected] => Array
                                                                                               (
                                                                                               )
   
                                                                                           [index:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                                                           [patchRequest:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                                                       )
   
                                                                                   [discount] => PaymentPlugins\PayPalSDK\Money Object
                                                                                       (
                                                                                           [_values:protected] => Array
                                                                                               (
                                                                                                   [value] => 0.00
                                                                                                   [currency_code] => EUR
                                                                                               )
   
                                                                                           [mappings:protected] => Array
                                                                                               (
                                                                                               )
   
                                                                                           [index:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                                                           [patchRequest:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                                                       )
   
                                                                                   [handling] => PaymentPlugins\PayPalSDK\Money Object
                                                                                       (
                                                                                           [_values:protected] => Array
                                                                                               (
                                                                                                   [currency_code] => EUR
                                                                                                   [value] => 0.00
                                                                                               )
   
                                                                                           [mappings:protected] => Array
                                                                                               (
                                                                                               )
   
                                                                                           [index:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                                                           [patchRequest:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                                                       )
   
                                                                               )
   
                                                                           [mappings:protected] => Array
                                                                               (
                                                                               )
   
                                                                           [index:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                                           [patchRequest:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                                       )
   
                                                               )
   
                                                           [mappings:protected] => Array
                                                               (
                                                               )
   
                                                           [index:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                           [patchRequest:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                       )
   
                                                   [items] => PaymentPlugins\PayPalSDK\Collection Object
                                                       (
                                                           [_values:protected] => Array
                                                               (
                                                                   [0] => PaymentPlugins\PayPalSDK\Item Object
                                                                       (
                                                                           [_values:protected] => Array
                                                                               (
                                                                                   [name] => Indiana Gloss 100ml
                                                                                   [quantity] => 1
                                                                                   [unit_amount] => PaymentPlugins\PayPalSDK\Money Object
                                                                                       (
                                                                                           [_values:protected] => Array
                                                                                               (
                                                                                                   [currency_code] => EUR
                                                                                                   [value] => 25.00
                                                                                               )
   
                                                                                           [mappings:protected] => Array
                                                                                               (
                                                                                               )
   
                                                                                           [index:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                                                           [patchRequest:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                                                       )
   
                                                                                   [sku] => 470
                                                                                   [description] => Product ID: 470
                                                                               )
   
                                                                           [mappings:protected] => Array
                                                                               (
                                                                               )
   
                                                                           [index:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                                           [patchRequest:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                                       )
   
                                                               )
   
                                                           [mappings:protected] => Array
                                                               (
                                                               )
   
                                                           [index:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                           [patchRequest:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                       )
   
                                                   [shipping] => PaymentPlugins\PayPalSDK\Shipping Object
                                                       (
                                                           [_values:protected] => Array
                                                               (
                                                                   [name] => PaymentPlugins\PayPalSDK\Name Object
                                                                       (
                                                                           [_values:protected] => Array
                                                                               (
                                                                                   [full_name] => ******
                                                                               )
   
                                                                           [mappings:protected] => Array
                                                                               (
                                                                               )
   
                                                                           [index:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                                           [patchRequest:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                                       )
   
                                                                   [address] => PaymentPlugins\PayPalSDK\Address Object
                                                                       (
                                                                           [_values:protected] => Array
                                                                               (
                                                                                   [address_line_1] => **********
                                                                                   [address_line_2] => 
                                                                                   [admin_area_1] => 
                                                                                   [admin_area_2] => ******
                                                                                   [postal_code] => *****
                                                                                   [country_code] => FR
                                                                               )
   
                                                                           [mappings:protected] => Array
                                                                               (
                                                                               )
   
                                                                           [index:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                                           [patchRequest:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                                       )
   
                                                               )
   
                                                           [mappings:protected] => Array
                                                               (
                                                               )
   
                                                           [index:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                           [patchRequest:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                                       )
   
                                               )
   
                                           [mappings:protected] => Array
                                               (
                                               )
   
                                           [index:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                           [patchRequest:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                                       )
   
                               )
   
                           [mappings:protected] => Array
                               (
                               )
   
                           [index:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                           [patchRequest:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                       )
   
                   [application_context] => PaymentPlugins\PayPalSDK\OrderApplicationContext Object
                       (
                           [_values:protected] => Array
                               (
                                   [shipping_preference] => GET_FROM_FILE
                                   [return_url] => **********/wc-api/ppcp_checkout_return/?_checkoutnonce=a7c24152ff
                                   [cancel_url] => *******/commander-2/
                                   [brand_name] => ********
                               )
   
                           [mappings:protected] => Array
                               (
                               )
   
                           [index:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                           [patchRequest:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                       )
   
               )
   
           [mappings:protected] => Array
               (
               )
   
           [index:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
           [patchRequest:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
       )
   
           [error] => 
       )
   
       2023-08-21T11:18:52+00:00 ERROR Error creating PayPal order. Msg: Params: Array
       (
           [intent] => CAPTURE
           [payer] => Array
               (
                   [name] => Array
                       (
                           [given_name] => *****
                           [surname] => ******
                       )
   
                   [address] => Array
                       (
                           [address_line_1] => *******
                           [address_line_2] => 
                           [admin_area_1] => 
                           [admin_area_2] => ******
                           [postal_code] => ****
                           [country_code] => FR
                       )
   
                   [email_address] => *********
               )
   
           [purchase_units] => Array
               (
                   [0] => Array
                       (
                           [amount] => Array
                               (
                                   [value] => 29.90
                                   [currency_code] => EUR
                                   [breakdown] => Array
                                       (
                                           [item_total] => Array
                                               (
                                                   [currency_code] => EUR
                                                   [value] => 25.00
                                               )
   
                                           [shipping] => Array
                                               (
                                                   [currency_code] => EUR
                                                   [value] => 4.90
                                               )
   
                                           [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] => Indiana Gloss 100ml
                                           [quantity] => 1
                                           [unit_amount] => Array
                                               (
                                                   [currency_code] => EUR
                                                   [value] => 25.00
                                               )
   
                                           [sku] => 470
                                           [description] => Product ID: 470
                                       )
   
                               )
   
                           [shipping] => Array
                               (
                                   [name] => Array
                                       (
                                           [full_name] => *******
                                       )
   
                                   [address] => Array
                                       (
                                           [address_line_1] => ********
                                           [address_line_2] => 
                                           [admin_area_1] => 
                                           [admin_area_2] => ******
                                           [postal_code] => *****
                                           [country_code] => FR
                                       )
   
                               )
   
                       )
   
               )
   
           [application_context] => Array
               (
                   [shipping_preference] => GET_FROM_FILE
                   [return_url] => ********/wc-api/ppcp_checkout_return/?_checkoutnonce=a7c24152ff
                   [cancel_url] => *******/commander-2/
                   [brand_name] => *******
               )
   
       )
       ```
   
 * I replaced the personal information with asterix.
 * Thanks

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-403-60/#post-16989602)
 * Hi [@marocweb](https://wordpress.org/support/users/marocweb/)
 * > I get an “Indefinite” error message
 * The log file shows an empty error object which is odd. Can you go into more detail
   on the “indefinite” error message? Can you provide the exact message, if any,
   that you see on the checkout page when the PayPal button is clicked?
 * Are you able to share the website url?
 * Your support title mentions a 403 which is an HTTP status code indicating the
   request is forbidden. Are you seeing the 403 in the developer console or somewhere
   else?
 * Kind Regards
 *  Thread Starter [marocweb](https://wordpress.org/support/users/marocweb/)
 * (@marocweb)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-403-60/#post-16989761)
 * Thanks,
 * Unfortunately I have nothing else in log or frontend.
   In the console I have this:
 *     ```wp-block-code
       /?wc-ajax=wc_ppcp_frontend_request&path=%2Fwc-ppcp%2Fv1%2Fcart%2Forder&_locale=user:1     Failed to load resource: the server responded with a status of 400 ()
       api-fetch.min.js?ver=0fa4dabf8bf2c7adf21a:2     POST https://www.lhecosmetic.com/?wc-ajax=wc_ppcp_frontend_request&path=%2Fwc-ppcp%2Fv1%2Fcart%2Forder&_locale=user 400
       ```
   
 * I reactivated PayPal so you can check for yourself:
   [https://www.lhecosmetic.com/](https://www.lhecosmetic.com/)
 * Thanks.
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-403-60/#post-16989771)
 * Hi [@marocweb](https://wordpress.org/support/users/marocweb/)
 * The HTTP response code I see is a 400. I recommend re-connecting the PayPal plugin
   to your PayPal business account and trying again. PayPal’s API is rejecting the
   order creation requests but not providing any helpful error message.
 * Did you manually enter your API keys or use the Connect feature?
 * Kind Regards,
 *  Thread Starter [marocweb](https://wordpress.org/support/users/marocweb/)
 * (@marocweb)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-403-60/#post-16989787)
 * I manually filled in the keys since the Connect feature didn’t “work” after several
   attempts.
 *  Thread Starter [marocweb](https://wordpress.org/support/users/marocweb/)
 * (@marocweb)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-403-60/#post-16989791)
 * Wouldn’t it be due to the theme becoming obsolete?
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-403-60/#post-16989808)
 * > I manually filled in the keys since the Connect feature didn’t “work” after
   > several attempts.
 * Can you describe how the Connect feature didn’t work? Did you observe any error
   message or did the authentication popup never open?
 * > Wouldn’t it be due to the theme becoming obsolete?
 * That shouldn’t matter, unless your theme is doing something to modify the WordPress
   request API, which the PayPal plugin uses to communicate with PayPal’s servers.
 * Since the error message is blank, that could actually point to the request never
   making it to PayPal. Did this behavior just start or it’s been an issue since
   you installed our plugin?
 * Kind Regards
 *  Thread Starter [marocweb](https://wordpress.org/support/users/marocweb/)
 * (@marocweb)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-403-60/#post-16989836)
 * I click to connect, a modal window opens asking me for paypal email and country.
   I fill in the email and France. An existing account already, my password is requested,
   I fill it in then click on accept. The window closes to return to the plugin 
   settings but another JS alert() type window opens but no message appears.
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-403-60/#post-16989850)
 * Thank you for that info. I sounds as if your hosting company might be rejecting
   outbound requests to PayPal’s servers. If you’re using a hosting company, can
   you ask them to make sure that PayPal’s servers are whitelisted for outbound 
   requests?
 * Kind Regards
 *  Thread Starter [marocweb](https://wordpress.org/support/users/marocweb/)
 * (@marocweb)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-403-60/#post-16990224)
 * Strange because I can configure the sandbox via the Connect feature and it works
   perfectly
    -  This reply was modified 2 years, 8 months ago by [marocweb](https://wordpress.org/support/users/marocweb/).
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-403-60/#post-16990240)
 * > Strange because I can configure the sandbox via the Connect feature and it 
   > works perfectly
 * That is odd, but Sandbox and Production do use different servers so it’s still
   possible.
 * Production: **[https://api-m.paypal.com](https://api-m.paypal.com)**
 * Sandbox: **[https://api-m.sandbox.paypal.com](https://api-m.sandbox.paypal.com)**
 * I’d try double checking your production secret key and re-copy and pasting it
   as a sanity check.
 * Kind Regards,

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Error 403’ is closed to new replies.

 * ![](https://ps.w.org/pymntpl-paypal-woocommerce/assets/icon-256x256.png?rev=2718338)
 * [Payment Plugins for PayPal WooCommerce](https://wordpress.org/plugins/pymntpl-paypal-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pymntpl-paypal-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pymntpl-paypal-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/pymntpl-paypal-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pymntpl-paypal-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pymntpl-paypal-woocommerce/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/error-403-60/#post-16990240)
 * Status: resolved