• Resolved Bizzy

    (@spicon1)


    Hi I’m having a lot of trouble right now with my products. I activated my products today online and it turns out there’s an error when clicking on the buttons

    “Error occurred: No API key provided. (HINT: set your API key using “Stripe::setApiKey()”. You can generate API keys from the Stripe web interface. See https://stripe.com/api for details, or email [email protected] if you have any questions.”

    I contacted Stripe supports about it and discovered that in my case when creating the requests, the test mode keys are being used.

    I have all the test and live mode keys added to my settings, and I have learnt that to have to make sure that if I create requests using products created in the live environment, the live mode API keys must be used. I was told that it appears that I still have the test API keys on while doing live transactions already.

    Please, I need an urgent help from the SWPM plugin to change the API keys from their side to live mode as I can’t access it from my side. Thanks

    Kind regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Bizzy

    (@spicon1)

    Can someone please help me with this issue?

    Thank you.

    Plugin Support mbrsolution

    (@mbrsolution)

    Thank you for reaching out to us. Which Stripe method are you using? Is it Buy Now or Subscription payment method?

    The following is the documentation for both methods.

    Buy Now method:

    https://simple-membership-plugin.com/sca-compliant-stripe-buy-now-button/

    Subscription method:

    https://simple-membership-plugin.com/sca-compliant-stripe-subscription-button/

    The following documentation helps you troubleshoot the above payment method.

    https://simple-membership-plugin.com/payment-testing-checklist-for-simple-membership/

    Kind regards.

    Thread Starter Bizzy

    (@spicon1)

    Thank you, Mbrsolution! You’re always the best at solving tough issues that are hard to figure out. First, I managed to identify a potential problem on my own. When I unchecked the box for sandbox/test mode, I noticed that when I refreshed the page, the second product was activated, but the first product failed because it was created during the test mode process. I really appreciate the links you provided, which helped me replaced the first product to live mode in step by step.

    One more thing I need assistance with please, since you helped me create a button for my product, I’d like to know how to open a new tab when someone clicks the button, rather than using the same window.

    Let me know, Thanks again!

    Plugin Support mbrsolution

    (@mbrsolution)

    I’d like to know how to open a new tab when someone clicks the button, rather than using the same window.

    Try adding the following parameter new_window=”1″ to the shortcode. Remember the following is just an example shortcode. Please edit the content in the shortcode as needed.

    For example:

    [swpm_payment_button id=75 button_text="Pay Now" new_window="1"]

    Let me know if this helps you.

    Kind regards.

    Thread Starter Bizzy

    (@spicon1)

    Hi Mbrsolution, thanks for your reply. I added the bit you suggested, but the same window changes instead of a new popup window.

    [swpm_payment_button id=”45255″ button_text=”Choose Plan” new_window=”1″ class=”my-stripe-button” ]

    • This reply was modified 1 year, 5 months ago by Bizzy.
    Plugin Support mbrsolution

    (@mbrsolution)

    Thank you for reporting back. Apparently that parameter cannot be used in the type of button you are trying to set up according to the developers. However they did suggest the following option which could also work well for you. Please see the following forum post.

    https://simple-membership-plugin.com/forums/topic/open-in-new-window-not-working-for-stripe/#post-27387

    Kind regards.

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

The topic ‘API Keys is in Error. I need help please.’ is closed to new replies.