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 email
email@example.com you have any questions.
Clearly the API keys are present since all the payment side’s working great. Any suggestions?
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.
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.
You must be logged in to reply to this topic.