-
Notifications
You must be signed in to change notification settings - Fork 595
Migration guide for v8
Ramya Rao edited this page May 22, 2024
·
6 revisions
- The
savemethod is deprecated. Prefer the staticupdatemethod 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")
saveto unset a parameter by assigning it anilvalue, when switching toupdateplease 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
Skuresource. - Removed deprecated
Ordersresource. - Removed deprecated
deletemethod onSubscriptionresource. Please usecancelmethod instead.# before Stripe::Subscription::delete("sub_12345") # after Stripe::Subscription::cancel("sub_12345")