#divyanshu

1 messages · Page 1 of 1 (latest)

teal loomBOT
fiery cairn
#

👋 happy to help

hidden forum
#

Hi!

#

Is there any other information you need?

fiery cairn
hidden forum
#

I read that, and when I use the cancel method, it throws the error: undefined method `cancel' for Stripe::Subscription:Class

astral flax
#

Hi! I'm taking over my colleague. Please, give me a moment to catch up.

hidden forum
#

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?

astral flax
high spade
#

jumping in quickly : yes it changed in a newer version of the library than the old one you're using

hidden forum
hidden forum
high spade
#

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.

hidden forum
high spade
#

what makes you think it's not cancelling?

#

the Subscription sub_1N68aFSCXUnUITGonjjHVXyZ is cancelled as you can check on your dashboard

hidden forum
#

Can you let me know where on my dashboard I can check it?
(Apologies, I am a bit new to Stripe)

high spade
#

you can put that ID sub_1N68aFSCXUnUITGonjjHVXyZ into the search bar at the top of dashboard.stripe.com