- This topic has 2 replies, 2 voices, and was last updated 5 years ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Stripe subscription cancel fails: No API key provided
Hi
Firstly thanks for your great plugin. I have a problem when cancelling subscriptions manually via the admin panel, where Stripe cancel fails and claims no API key is provided, typical log entry here:
[2021/05/23 08:29:09] – FAILURE: Error occurred during Stripe Subscription cancellation. No API key provided. (HINT: set your API key using “Stripe::setApiKey(<API-KEY>)”. You can generate API keys from the Stripe web interface. See
https://stripe.com/apifor details, or emailsupport@stripe.comif you have any questions.
Clearly the API keys are present since all the payment side’s working great. Any suggestions?
Hi,
The best practice for a subscription payment is to cancel it from the payment gateway (from your merchant account). This is the same for both PayPal and Stripe. When you (the site admin) cancel a subscription payment, our plugin will receive a notification and it will disable the member’s account. Check the following support thread for more information. Please check the following forum post for more information.
Let me know if the above helps you.
Thank you
Hi
While that may work and I’ll certainly bear it in mind for the future, it doesn’t really address the question as to why the SWPM Stripe cancel payment request clearly isn’t picking up the API key…
It’s really just an annoyance since everything else is working fine.
Cheers