Simple Membership Plugin › Forums › Simple Membership Plugin › Stripe subscription – cancellation issues
Tagged: Stripe SCA Subscription Cancel
- This topic has 6 replies, 2 voices, and was last updated 6 years ago by
sparkyjf.
-
AuthorPosts
-
November 23, 2020 at 10:53 pm #21576
sparkyjf
ParticipantHi there
First of all, I just wanted to say thanks for this amazing plugin – it’s an awesome piece of work and I’m very grateful for it.
I am having some problems with cancellation of a Stripe subscription – set up through an SCA compliant button. That piece works fine, but I’ve noticed 3 things:
1. The payments page for the plugin only ever shows the first payment – subsequent payments on the subscription are never shown – is this by design?
2. According to this page: https://simple-membership-plugin.com/forums/topic/cancel-on-stripe/ – making the user account inactive is sufficient to cancel the Stripe subscription – however I’ve just tested this and Stripe reports that the subscription is still active and a payment will be taken tomorrow.
3. Also from the above link, the short code [swpm_stripe_subscription_cancel_link] when placed on a page with nothing else, results in WordPress telling me that a serious error has occurred.If you can help me with these issues I would be really grateful – I’m not clear if I’ve done something wrong in the setup process?
Many thanks
November 25, 2020 at 2:10 am #21579mbrsolution
ModeratorHi,
The following documentation explains how Stripe Subscription cancellation works in our plugin.
https://simple-membership-plugin.com/how-can-i-cancel-a-stripe-subscription-as-a-merchant/
3. Also from the above link, the short code [swpm_stripe_subscription_cancel_link] when placed on a page with nothing else, results in WordPress telling me that a serious error has occurred.
What error are you receiving?
Thank you
November 25, 2020 at 2:03 pm #21582sparkyjf
ParticipantHi there
In answer to your question – I see the following when I paste that tag onto an otherwise blank WordPress page:
Cancel Your Membership
There has been a critical error on your website.Learn more about debugging in WordPress.
Redacted Apache error_log entries show the following when I try to open this page:
[Wed Nov 25 13:57:25.342132 2020] [fcgid:warn] [pid 24722] [client xx.xx.xx.xx:56488] mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Call to undefined function array_key_first() in /webroot/public_html/wp-content/plugins/simple-membership/classes/class-swpm-member-subscriptions.php:124
[Wed Nov 25 13:57:25.342184 2020] [fcgid:warn] [pid 24722] [client xx.xx.xx.xx:56488] mod_fcgid: stderr: Stack trace:
[Wed Nov 25 13:57:25.342189 2020] [fcgid:warn] [pid 24722] [client xx.xx.xx.xx:56488] mod_fcgid: stderr: #0 /webroot/public_html/wp-content/plugins/simple-membership/classes/shortcode-related/class.swpm-shortcodes-handler.php(167): SWPM_Member_Subscriptions->get_stripe_subs_cancel_url(”, false)
[Wed Nov 25 13:57:25.342193 2020] [fcgid:warn] [pid 24722] [client xx.xx.xx.xx:56488] mod_fcgid: stderr: #1 /webroot/public_html/wp-includes/shortcodes.php(343): SwpmShortcodesHandler->swpm_stripe_cancel_subs_link_sc(”, ”, ‘swpm_stripe_sub…’)
[Wed Nov 25 13:57:25.342204 2020] [fcgid:warn] [pid 24722] [client xx.xx.xx.xx:56488] mod_fcgid: stderr: #2 [internal function]: do_shortcode_tag(Array)
[Wed Nov 25 13:57:25.342207 2020] [fcgid:warn] [pid 24722] [client xx.xx.xx.xx:56488] mod_fcgid: stderr: #3 /webroot/public_html/wp-includes/shortcodes.php(218): preg_replace_callback(‘/\\\\[(\\\\[?)(swpm_s…’, ‘do_shortcode_ta…’, ‘[swpm_stripe_su…’)
[Wed Nov 25 13:57:25.342211 2020] [fcgid:warn] [pid 24722] [client xx.xx.xx.xx:56488] mod_fcgid: stderr: #4 /home/movement-improvement.studio/domains/tes in /webroot/public_html/wp-content/plugins/simple-membership/classes/class-swpm-member-subscriptions.php on line 124Not sure if this helps?
November 26, 2020 at 12:02 am #21584mbrsolution
ModeratorHi,
Can you use the following plugin to check to see if there are any issues with your site.
https://wordpress.org/plugins/health-check/
Thank you
November 26, 2020 at 9:44 am #21589sparkyjf
ParticipantHi there
I see the following – not sure if any of these could be the cause:
- Jetpack not connected
- PHP could be updated
- Inactive plugins should be removed
- Have a default theme available
The site is running on PHP 7.2.24
Thanks!
November 27, 2020 at 12:07 am #21592mbrsolution
ModeratorHi, can you update your PHP version to at least 7.3.x. Let me know if this resolves your issue.
Thank you
December 2, 2020 at 12:13 pm #21641sparkyjf
ParticipantHi there
Sorry for the delay in implementing this – I have now had time to install PHP 7.3.24 on my VPS, and I can confirm that the cancellation button renders correctly. Thanks for your help!
-
AuthorPosts
- You must be logged in to reply to this topic.