• To the Development Team,

    I appreciate the excellent SimpleMembership plugin as always. However, I have encountered an issue with the Stripe Subscription cancel button recently and would like to request your support.

    I have implemented the Stripe Subscription cancel button using the shortcode [swpm_stripe_subscription_cancel_link]. In my environment, the cancel button is displayed correctly, and subscription cancellation works as expected. I have published a page with the cancel button for users to utilize, guiding them to use that page if they wish to cancel. However, I have received inquiries from some users stating that they see “No active subscriptions” and are unable to cancel their subscriptions.

    Upon inspecting the file class.swpm-shortcodes-handler.php, I found that the “No active subscriptions” message is displayed when $subs->get_active_subs_count() is empty. However, all the users who contacted me have active and valid Stripe subscriptions, with successful payments, and their SimpleMembership member status is also valid. It would be greatly appreciated if you could explain why $subs->get_active_subs_count() is empty for these users.

    If you have any insights or solutions regarding potential causes and resolutions to ensure that the cancel button is displayed correctly for users, I would greatly appreciate your assistance.

    WordPress Version : 5.8.9
    Plugin Version : Simple WordPress Membership 4.3.6
    Stripe Webhook API Version : 2020-08-27
    Stripe Webhook Send Events : customer(all 21 events), charge(all 13 events), invoice.payment_succeeded

    Thank you for your help.

Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter sadohage

    (@sadohage)

    I have not tested with version 4.4.9 yet.
    I will test it soon and report back with the results once the testing is complete.

    Regards.

    Thread Starter sadohage

    (@sadohage)

    @mbrsolution

    I tested version 4.4.9 last night.
    However, the issue with the cancel button has still not been resolved.

    Regards.

    Plugin Author wp.insider

    (@wpinsider-1)

    Hi,

    Was the test you conducted with a newly created subscription using v4.4.9, or with an older subscription?

    The newly introduced cancel subscription shortcode requires additional parameters and data that older subscriptions don’t have, so it won’t work correctly with them. Due to recent changes by Stripe, we couldn’t make this shortcode backward compatible.

    Additionally, it looks like your Stripe webhook version is outdated and should be updated.

    If the subscription was created a long time ago, it likely uses an older Stripe version. Please create a new subscription using the following documentation and test it:

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

    Older subscriptions will still function, but they won’t be compatible with the new cancel shortcode.

    Thread Starter sadohage

    (@sadohage)

    @wpinsider-1

    Thank you for your response.

    I would like to understand more specifically what you mentioned. Does it mean that after updating the Stripe API version (webhook version) to the latest one and recreating the subscription product, the cancel button will only be valid for new users? Or, once the webhook is updated, is it unnecessary to create a new subscription product?

    Additionally, for already registered users, will the cancel button become active if a recurring payment occurs after updating the webhook?

    Could you please confirm if my understanding of the cancel button shortcode’s functionality for the following scenarios is correct?

    1. Webhook updated, subscription product recreated, new users → work
    2. Webhook updated, subscription product recreated, existing users (no payments after webhook update) → Not work
    3. Webhook updated, subscription product recreated, existing users (payments after webhook update) → Not work?
    4. Webhook updated, subscription product not recreated, new users → Not work?
    5. Webhook updated, subscription product not recreated, existing users (no payments after webhook update) → Not work?
    6. Webhook updated, subscription product not recreated, existing users (payments after webhook update) → Not work?

    Thank you for your detailed support.
    I appreciate your continued assistance.

    Plugin Author wp.insider

    (@wpinsider-1)

    Hi,

    To clarify, old/existing subscriptions will continue to function normally but are incompatible with the new cancel shortcode feature we recently released. Unfortunately, there is no way to make this new feature compatible with old subscription products from Stripe. The existing features will continue to work as they have for these subscriptions, but you should assume the new cancel feature doesn’t exist for them.

    For managing old subscriptions, please use one of the methods explained here:

    https://simple-membership-plugin.com/how-can-i-cancel-a-stripe-subscription-as-a-merchant/

    The new Stripe subscription products include features that support the new all-in-one cancel subscription shortcode. To use this new shortcode, follow these steps to migrate over time:

    #1) Create new subscription buttons using our documentation:

    https://simple-membership-plugin.com/create-paypal-subscription-buttons-paypal-api/

    #2) Add these new buttons to your membership or payments page to replace the old ones.

      This ensures that all new members will use the updated buttons, while existing members remain unaffected. Over time, as existing subscriptions expire and members renew or create new transactions, they will naturally transition to the new subscriptions.

        Thread Starter sadohage

        (@sadohage)

        @wpinsider-1

        Thank you for your response.

        I understand that for existing users, over time (with updates or the occurrence of new transactions), their subscriptions will gradually be replaced with new ones where the cancel button functions properly.

        Thank you for providing the migration steps as well. When creating a button on Stripe, should I follow the documentation provided here?
        https://simple-membership-plugin.com/sca-compliant-stripe-subscription-button/

        I will update the webhook version and follow the steps you mentioned. I will check whether the cancel button starts functioning for existing users who currently do not have a working cancel button once a new transaction occurs.

        If there are any issues, such as the cancel button not working even after a new transaction, I will reach out for further assistance.

        Thank you for your support.
        I appreciate your continued assistance.

        Plugin Author wp.insider

        (@wpinsider-1)

        Yes, that’s the documentation to follow for creating a new Stripe subscription button at the moment.

        Thread Starter sadohage

        (@sadohage)

        Thank you for your response.

        I have created and activated a new webhook with the latest version on Stripe and deactivated the old version of the webhook (currently, only the new version of the webhook is active). Additionally, I have created a new Stripe SCA Subscription Button and published it on my website.

        In this situation, I will check if the cancel button appears for the existing users who were experiencing issues after a new transaction occurs.

        Regards.

      Viewing 8 replies - 16 through 23 (of 23 total)
      • You must be logged in to reply to this topic.