Skip to content

v13.1.0-beta.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@ramya-stripe ramya-stripe released this 03 Oct 23:24
· 23 commits to master since this release
  • #1465 Updates to the Preview class
    • Remove Stripe::Preview. Use StripeClient#raw_request instead (see below).
    • Marked Stripe.raw_request and Stripe.deserialize as deprecated. Use StripeClient#raw_request and StripeClient#deserialize instead. In StripeClient, the params and opts parameters are passed as keyword arguments:
      # Before
      resp = Stripe.raw_request(:post, "v1/charges", , {p1: "p1"}, {stripe_account: "acct_123"})
      charge = Stripe.deserialize(resp.data)
      
      # After
      client = StripeClient.new("sk_test_123") 
      resp = client.raw_request(:post, "/v1/charges", params: {p1: "p1"}, opts: {stripe_account: "acct_123"})
      charge = client.deserialize(resp.data)

See the changelog for more details.