#divyanshu
1 messages · Page 1 of 1 (latest)
👋 happy to help
I read that, and when I use the cancel method, it throws the error: undefined method `cancel' for Stripe::Subscription:Class
Hi! I'm taking over my colleague. Please, give me a moment to catch up.
Hi! Sure
Our app's stripe gem is stripe (5.29.0)
Can you confirm if the cancel method was added afterwards? And if so, did the delete' method stop working?
Could you please share the Request ID req_xxx? https://support.stripe.com/questions/finding-the-id-for-an-api-request
jumping in quickly : yes it changed in a newer version of the library than the old one you're using
req_jNFD6SdMUlNB7L
This is using the 'delete' method. cancel throws an error
I see! But I guess delete still works, though deprecated?
This was in test mode
well you're using an old version
so like it doesn't matter if we deprecated it in a future version of the library, you're not using that version
cancel doesn't exist in your older version of the library so you have to use delete. If you update to the newer version of the library, as part of updating your code to work with the new version you'd change to using cancel.
I understand. So, I see that delete does make a call, but the subscription isn't cancelling
what makes you think it's not cancelling?
the Subscription sub_1N68aFSCXUnUITGonjjHVXyZ is cancelled as you can check on your dashboard
Can you let me know where on my dashboard I can check it?
(Apologies, I am a bit new to Stripe)
you can put that ID sub_1N68aFSCXUnUITGonjjHVXyZ into the search bar at the top of dashboard.stripe.com