Skip to content

Migration guide for v7

Kamil Pajdzik edited this page Jul 30, 2022 · 2 revisions

Migration guide from v6 to v7

Changed

  • retrieve_cash_balance and update_cash_balance methods on Customer resource no longer requires the second argument to always be nil. The method now takes customer_id, params, and opts parameters.
    # change from
    Stripe::Customer:: update_cash_balance("cus_12345", nil, { /* params */ }, { /* opts */ })
    # to
    Stripe::Customer:: update_cash_balance("cus_12345", { /* params */ }, { /* opts */ })
    
  • Update default bundle of CA certificates to April 26, 2022.

Deprecated

  • Deprecate delete method on Subscription resource. Please use cancel method instead.
    # change from
    Stripe::Subscription::delete("sub_12345")
    # to
    Stripe::Subscription::cancel("sub_12345")
    

Removed

  • Remove details method from Issuing.Card resource. The method was not supported.
  • Remove Issuing.CardDetails resource. Read more at https://stripe.com/docs/issuing/cards/virtual.
  • Remove create method from ReportType resource. The method was not supported.
  • Remove usage_record_summaries method from SubscriptionItem resource. Please use list_usage_record_summaries method instead.
    # change from
    Stripe::SubscriptionItem.usage_record_summaries("si_12345")
    # to
    Stripe::SubscriptionItem.list_usage_record_summaries("si_12345")
    
  • Remove AlipayAccount, BitcoinReceiver, BitcoinTransaction, Issuing::CardDetails, Recipient, RecipientTransfer, and ThreeDSecure resources. The resources were deprecated or no longer in use.
  • Remove ability to list Card resource for a Recipient.
  • Remove cancel method from Transfer resource. The method was deprecated.
Clone this wiki locally