-
Notifications
You must be signed in to change notification settings - Fork 548
Migration guide for v8
Ramya Rao edited this page May 22, 2024
·
6 revisions
- The
save
method is deprecated. Prefer the staticupdate
method that doesn't require retrieval of the resource to update it.If you were using# before refund = Stripe::Refund.retrieve("re_123") refund.description = "Refund description" refund.save # after Stripe::Refund.update("re_123", description: "Refund description")
save
to unset a parameter by assigning it anil
value, when switching toupdate
please assign the parameter to an empty string""
to preserve the previous behavior.# before refund = Stripe::Refund.retrieve("re_123") refund.description = nil refund.save # after Stripe::Refund.update("re_123", description: "")
- Removed deprecated
Sku
resource. - Removed deprecated
Orders
resource. - Removed deprecated
delete
method onSubscription
resource. Please usecancel
method instead.# before Stripe::Subscription::delete("sub_12345") # after Stripe::Subscription::cancel("sub_12345")