• stantanee

    (@stantanee)


    Hi, I have problem in my website.
    I use Simple Membership to let member regist they account. And all of member are paid membership. (using Stripe SCA subscription)
    I let enable Allow Account Deletion. But after the member deleted their account,their Stripe subscription are not cancelled.
    I have to login Stripe and cancel their subscription by myself.

    What should I do to fix this problem?

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Hi, thank you for reaching out to us.

    To cancel a Stripe subscription, please refer to the following link. Pay attention to the following header “Creating a Stripe Subscription Cancellation Button for the Members”.

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

    Let me know if this helps you.

    Kind regards.

    Thread Starter stantanee

    (@stantanee)

    It means the members have to do following 2 process to complete their account deleting?
    1st : login and click the ?Stripe Subscription Cancellation Button
    2nd : go to profile and delete their account

    Is there another way to let the member only 1 time process to cancel all?


    Plugin Support mbrsolution

    (@mbrsolution)

    Is there another way to let the member only 1 time process to cancel all?

    Can you enable debug log and then carry out a test by deleting the members account “Stripe subscription” using the Delete Account link. Then check the log files. Let me know what happens.

    Kind regards.

    Thread Starter stantanee

    (@stantanee)

    Sure. Please check my debug.
    My Step
    registed new paid account > deleted account by using Delete Account > checked Stripe dashboard, subscription still working.

    [2023/11/10 12:31:50] - SUCCESS: Member registration complete email sent to: [email protected]. From email address value used: 一般社団法人三次元スキャンテクノロジー協会 <[email protected]>
    [2023/11/10 12:32:11] - SUCCESS: Updating the account status value of member (88) to: active
    [2023/11/10 12:32:11] - SUCCESS: Member registration complete email sent to: [email protected]. From email address value used: 一般社団法人三次元スキャンテクノロジー協会 <[email protected]>
    [2023/11/10 12:32:11] - SUCCESS: Admin notification email sent to: [email protected]
    [2023/11/10 12:32:50] - SUCCESS: Attempting to cancel Stripe Subscription sub_1LfxxUJQyZ3zzWNKoO4tfewg
    [2023/11/10 12:32:51] - FAILURE: Error occurred during Stripe Subscription cancellation. No such subscription: 'sub_1LfxxUJQyZ3zzWNKoO4tfewg'; a similar object exists in live mode, but a test mode key was used to make this request.
    [2023/11/10 12:32:51] - FAILURE: Error details: {"code":"resource_missing","doc_url":"https:\/\/stripe.com\/docs\/error-codes\/resource-missing","message":"No such subscription: 'sub_1LfxxUJQyZ3zzWNKoO4tfewg'; a similar object exists in live mode, but a test mode key was used to make this request.","param":"id","request_log_url":"https:\/\/dashboard.stripe.com\/test\/logs\/req_X64VV0XbfbzQMj?t=1699587170","type":"invalid_request_error"}
    [2023/11/10 12:32:51] - SUCCESS: Attempting to cancel Stripe Subscription sub_1Lfz9LJQyZ3zzWNK68hLFKrC
    [2023/11/10 12:32:51] - FAILURE: Error occurred during Stripe Subscription cancellation. No such subscription: 'sub_1Lfz9LJQyZ3zzWNK68hLFKrC'; a similar object exists in live mode, but a test mode key was used to make this request.
    [2023/11/10 12:32:51] - FAILURE: Error details: {"code":"resource_missing","doc_url":"https:\/\/stripe.com\/docs\/error-codes\/resource-missing","message":"No such subscription: 'sub_1Lfz9LJQyZ3zzWNK68hLFKrC'; a similar object exists in live mode, but a test mode key was used to make this request.","param":"id","request_log_url":"https:\/\/dashboard.stripe.com\/test\/logs\/req_g8KNYtVtUsdmso?t=1699587171","type":"invalid_request_error"}
    [2023/11/10 12:32:51] - SUCCESS: Attempting to cancel Stripe Subscription sub_1OAlQgJQyZ3zzWNK5QEFUAOb
    [2023/11/10 12:32:51] - FAILURE: Error occurred during Stripe Subscription cancellation. No such subscription: 'sub_1OAlQgJQyZ3zzWNK5QEFUAOb'; a similar object exists in live mode, but a test mode key was used to make this request.
    [2023/11/10 12:32:51] - FAILURE: Error details: {"code":"resource_missing","doc_url":"https:\/\/stripe.com\/docs\/error-codes\/resource-missing","message":"No such subscription: 'sub_1OAlQgJQyZ3zzWNK5QEFUAOb'; a similar object exists in live mode, but a test mode key was used to make this request.","param":"id","request_log_url":"https:\/\/dashboard.stripe.com\/test\/logs\/req_Cp7VZSEkqkR9FM?t=1699587171","type":"invalid_request_error"}
    
    
    Plugin Support mbrsolution

    (@mbrsolution)

    [2023/11/10 12:32:51] – FAILURE: Error occurred during Stripe Subscription cancellation. No such subscription: ‘sub_1LfxxUJQyZ3zzWNKoO4tfewg’; a similar object exists in live mode, but a test mode key was used to make this request.

    The above error message is letting you know that you have mixed the test mode keys with the live mode keys. Please make sure you enter the correct keys in their corresponding fields. For example:

    • 1- Test Publishable Key
    • 2- Live Publishable Key

    The following instructions can help you.

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

    Kind regards.

    Thread Starter stantanee

    (@stantanee)

    I checked my?test mode keys with the live mode keys already, but I think there are not wrong.
    Or I have to fix another else?

    Plugin Support mbrsolution

    (@mbrsolution)

    Unfortunately you are doing something wrong and that is why our plugin cannot delete the Stripe subscription as per the error message I mentioned above. Please describe to me in a step by step process how are you creating the subscription member and then deleting the subscription. Also what options have you enabled in the plugins admin settings. This might help me trace the issue.

    Kind regards.

    Plugin Author wp.insider

    (@wpinsider-1)

    Looks like you are mixing up test mode and live mode. That Stripe subscription in question seems to be have been made using test mode. However, now you have toggled to live mode and trying to cancel it from live mode. Switch back to test mode in the plugin. Complete your testing (including the delete member action which deletes the subscription). Then switch back to live mode. When it comes to subscriptions, all operation needs to be done in one mode, so try to do them all in one mode before switching.

    Thread Starter stantanee

    (@stantanee)

    Sorry for my late reply.
    Process of my creating the subscription member and then deleting the subscription.
    1) Create subscription member register payment button
    2) Press registration button, after paid Stripe subscription, register would be subscription member automatically.
    3) when delete account, go to Profile page and delete account by using Delete Account.
    4) Account is deleted from my site by no any notification.
    5) Login to Stripe Dashboard ahd check client information. The subscription of Simple membership still validity.
    6) Cancel the subscription by myself on Stripe dashborad.

    Enabled plugins:
    ?Akismet Anti-spam: Spam Protection
    ?All in One SEO
    ?Contact Form 7
    ?Easy FancyBox
    ?Google Analytics for WordPress by MonsterInsights
    ?Google Language Translator
    ?Kubio
    ?Send PDF for Contact Form 7
    ?Send Users Email
    ?Simple Membership Custom Messages
    ?Simple WordPress Membership
    ?SiteGuard WP Plugin
    ?TablePress
    ?UpdraftPlus
    ?WP Mail Smtp – SMTP7
    ?WP Simple Pay Pro
    ?WPFront Scroll Top
    ?Yoast Duplicate Post
    ?zipaddr-jp

    Plugin Support mbrsolution

    (@mbrsolution)

    Did you follow @wpinsider-1 intructions above?

    Looks like you are mixing up test mode and live mode. That Stripe subscription in question seems to be have been made using test mode. However, now you have toggled to live mode and trying to cancel it from live mode. Switch back to test mode in the plugin. Complete your testing (including the delete member action which deletes the subscription). Then switch back to live mode. When it comes to subscriptions, all operation needs to be done in one mode, so try to do them all in one mode before switching.

    Regards.

    Thread Starter stantanee

    (@stantanee)

    Looks like you are mixing up test mode and live mode. That Stripe subscription in question seems to be have been made using test mode. However, now you have toggled to live mode and trying to cancel it from live mode. Switch back to test mode in the plugin. Complete your testing (including the delete member action which deletes the subscription). Then switch back to live mode. When it comes to subscriptions, all operation needs to be done in one mode, so try to do them all in one mode before switching.

    Yes. I already trying.


    After I switched to test mode by Enable Sandbox Testing and try to test my payment button, this following message was showed
    Error occurred: No such price: ‘price_1OCWqQJQyZ3zzWNKZ7OUNzvc’; a similar object exists in live mode, but a test mode key was used to make this request.

    Next, I was trying creat a new subscription payment button > registed paid membership account > deleted account in live mode(all operation in live mode), but subscription still are not cancelled automatically.

    Here is debug.

    [2023/11/15 09:27:40] - SUCCESS: Attempting to cancel Stripe Subscription sub_1LfxxUJQyZ3zzWNKoO4tfewg 
    [2023/11/15 09:27:41] - FAILURE: Error occurred during Stripe Subscription cancellation. No such subscription: 'sub_1LfxxUJQyZ3zzWNKoO4tfewg'; a similar object exists in live mode, but a test mode key was used to make this request. 
    [2023/11/15 09:27:41] - FAILURE: Error details: {"code":"resource_missing","doc_url":"https:\/\/stripe.com\/docs\/error-codes\/resource-missing","message":"No such subscription: 'sub_1LfxxUJQyZ3zzWNKoO4tfewg'; a similar object exists in live mode, but a test mode key was used to make this request.","param":"id","request_log_url":"https:\/\/dashboard.stripe.com\/test\/logs\/req_qC7m8RluATuoSa?t=1700008061","type":"invalid_request_error"} 
    [2023/11/15 09:27:41] - SUCCESS: Attempting to cancel Stripe Subscription sub_1Lfz9LJQyZ3zzWNK68hLFKrC 
    [2023/11/15 09:27:41] - FAILURE: Error occurred during Stripe Subscription cancellation. No such subscription: 'sub_1Lfz9LJQyZ3zzWNK68hLFKrC'; a similar object exists in live mode, but a test mode key was used to make this request. 
    [2023/11/15 09:27:41] - FAILURE: Error details: {"code":"resource_missing","doc_url":"https:\/\/stripe.com\/docs\/error-codes\/resource-missing","message":"No such subscription: 'sub_1Lfz9LJQyZ3zzWNK68hLFKrC'; a similar object exists in live mode, but a test mode key was used to make this request.","param":"id","request_log_url":"https:\/\/dashboard.stripe.com\/test\/logs\/req_chI9EF5ZRYtWAV?t=1700008061","type":"invalid_request_error"} 
    [2023/11/15 09:27:41] - SUCCESS: Attempting to cancel Stripe Subscription sub_1OAlQgJQyZ3zzWNK5QEFUAOb 
    [2023/11/15 09:27:41] - FAILURE: Error occurred during Stripe Subscription cancellation. No such subscription: 'sub_1OAlQgJQyZ3zzWNK5QEFUAOb'; a similar object exists in live mode, but a test mode key was used to make this request. 
    [2023/11/15 09:27:41] - FAILURE: Error details: {"code":"resource_missing","doc_url":"https:\/\/stripe.com\/docs\/error-codes\/resource-missing","message":"No such subscription: 'sub_1OAlQgJQyZ3zzWNK5QEFUAOb'; a similar object exists in live mode, but a test mode key was used to make this request.","param":"id","request_log_url":"https:\/\/dashboard.stripe.com\/test\/logs\/req_iPal6mvmRqtdAL?t=1700008061","type":"invalid_request_error"} 
    [2023/11/15 09:27:41] - SUCCESS: Attempting to cancel Stripe Subscription sub_1OCWu0JQyZ3zzWNK15lds8nq 
    [2023/11/15 09:27:41] - FAILURE: Error occurred during Stripe Subscription cancellation. No such subscription: 'sub_1OCWu0JQyZ3zzWNK15lds8nq'; a similar object exists in live mode, but a test mode key was used to make this request.
    [2023/11/15 09:27:41] - FAILURE: Error details: {"code":"resource_missing","doc_url":"https:\/\/stripe.com\/docs\/error-codes\/resource-missing","message":"No such subscription: 'sub_1OCWu0JQyZ3zzWNK15lds8nq'; a similar object exists in live mode, but a test mode key was used to make this request.","param":"id","request_log_url":"https:\/\/dashboard.stripe.com\/test\/logs\/req_6v6rspYfzq2D40?t=1700008061","type":"invalid_request_error"}
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘When member deleted their account, subscription are not cancelled automatical’ is closed to new replies.