Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Resolved] Errors trying to use paypal button

Simple Membership Plugin › Forums › Simple Membership Plugin › Errors trying to use paypal button

Tagged: paypal

  • This topic has 2 replies, 2 voices, and was last updated 1 year, 5 months ago by mlachina.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • October 24, 2024 at 2:41 am #28955
    mlachina
    Participant

    After configuring the paypal payments button with the live client id and secret. I cleared the cache and tried to use the newly created button. I get the following error pop up on the webpage when I click on PayPal

    Test mode is off why are the errors referencing the sandbox ?

    logfile shows:
    [2024/10/23 18:05:26] – FAILURE: Error occurred with the PayPal API request. Error message: Client Authentication failed
    [2024/10/23 18:05:26] – FAILURE: PayPal Debug ID: b75166c47a903, Request URL: https://api-m.paypal.com/v1/notifications/webhooks
    [2024/10/23 18:05:26] – SUCCESS: Webhook creation failed for live mode. Error: Client Authentication failed: null
    [2024/10/23 18:05:26] – SUCCESS: Sandbox mode API credentials are not set.
    [2024/10/23 18:07:57] – SUCCESS: swpm_pp_create_order ajax request received for createOrder. Button ID: 6760, On Page Button ID: swpm_paypal_button_0
    [2024/10/23 18:07:57] – SUCCESS: [New Token] Creating a new PayPal API access token for environment mode: production
    [2024/10/23 18:07:58] – SUCCESS: PayPal Debug ID from the REST API (by URL) request. Debug ID: e3c512a682fec, Request URL: https://api-m.paypal.com/v1/oauth2/token?grant_type=client_credentials
    [2024/10/23 18:07:58] – FAILURE: PayPal API returned an error. Status Code: 401 Response Body: {“error”:”invalid_client”,”error_description”:”Client Authentication failed”}
    [2024/10/23 18:07:58] – SUCCESS: Executing order create (v2/checkout/orders) using URL and args.
    [2024/10/23 18:07:58] – SUCCESS: PayPal Debug ID from the REST API (by URL) request. Debug ID: 9fea24fc1ed31, Request URL: https://api-m.paypal.com/v2/checkout/orders
    [2024/10/23 18:07:58] – SUCCESS: PayPal Order ID:

    Error occurred during PayPal checkout process.

    {“stack”:”window.spb</h/</<@https://www.sandbox.paypal.com/smart/buttons……..

    October 24, 2024 at 2:44 am #28958
    admin
    Keymaster

    This looks to be a caching related issue. The button on your front-end page is likely cached. So that button is still trying to make a query using the sandbox mode (when it was cached). The following page will be useful to understand the impact of caching:
    https://simple-membership-plugin.com/understanding-the-impact-of-caching-on-membership-sites/

    Additionally, ensure that the sandbox mode is not enabled in the payment settings menu of the plugin. Delete cached any cookie everywhere after your testing. Then try the live mode.

    The following checklist will be helpful to read also:
    https://simple-membership-plugin.com/payment-testing-checklist-for-simple-membership/

    October 29, 2024 at 7:27 pm #29002
    mlachina
    Participant

    Thanks for your suggestions. I have double-checked everything you suggested, and I am still getting the same error messages. Is it possible the secretID and the clientID are for the sandbox environment? Unfortunately, I do not have direct access to the PayPal account and have to go through our treasurer. If I put both of those into the sandbox section of the config and turn on sandbox mode, it works perfectly. I have a strong suspicion he gave me the wrong environment values.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy