stantanee
Forum Replies Created
-
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"}
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-jpI 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?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"}
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?Forum: Plugins
In reply to: [Simple Membership] Stripe payment error when customer pay from ThailandThank you very much.
I’m asking my hosting provider now.
If I knew the issue, I will comment again.Best regards
Forum: Plugins
In reply to: [Simple Membership] Stripe payment error when customer pay from ThailandI carried out it already but still do not work only in Thailand.
Forum: Plugins
In reply to: [Simple Membership] Stripe Subscription Buttons are not workingSorry for my late reply.
I asked Kubio plugin support center and they’ve fixed my website completely.
May you can tell me is Simple Membership compatible with FSE functionality and themes?I thought my payment function did not work well because of this issue.
Kind regards
Forum: Plugins
In reply to: [Simple Membership] Stripe Subscription Buttons are not workingHello
I tried to disable Kubio plugin and changed to another theme, then payment buttons work.
And now I’m using Pathway theme for my website.
So now I knew that Simple membership plugin would work when I use Pathway theme without Kubio, or Kubio plugin without Pathway theme.If you have any advise please tell me how to fix this problem. Or I should give up?
Best regards
Forum: Plugins
In reply to: [Simple Membership] Stripe Subscription Buttons are not workingHello
The plugin name is Kubio. I’m using free version.
There is no any error messages on the screen. After press the button no any action.(the payment page pop up is not opened)Kind regards
Forum: Plugins
In reply to: [Simple Membership] Stripe Subscription Buttons are not workingHello
I found Simple membership plugin does not work when I use one of theme editor plugin.
But I have to use editor plugin for my website.I tried to disable all of plugin and clear the cache ans tried again but it does not work.
Do you have any advice please?Forum: Plugins
In reply to: [Simple Membership] Stripe Subscription Buttons are not workingThank you for your reply.
I do not use any cache plugin in my site and I tried to disable all of plugins but still dose not work.Kind regards.
Forum: Plugins
In reply to: [Simple Membership] Stripe Subscription Buttons are not workingI checked log files again today and this message is showing
SUCCESS: Stripe subscription webhook received: checkout.session.expired. Checking if we need to handle this webhook.
I went to check my webhook event, and it is showing
`checkout.session.expiredresponse
200 OK
“Event type not registered. No processing was done.”`What should I do?
Is it possible that the problem related to WAF security settings?
I changed the setting of WAF to disable to let Stripe payment button(WP simple pay) plugin works.Sorry for my late reply.
Thank you so much for your speedy support!
I tried your short code and my pay buttons are work now!
Thank you very much.Sorry, This is the screenshort from my table creation.
https://drive.google.com/file/d/10w3_uj_newfK6OcxccGa4DvUfd0oE-yI/view?usp=sharing