v13.1.0-beta.1
Pre-release
Pre-release
ramya-stripe
released this
03 Oct 23:24
·
23 commits
to master
since this release
- #1465 Updates to the
Preview
class- Remove
Stripe::Preview
. UseStripeClient#raw_request
instead (see below). - Marked
Stripe.raw_request
andStripe.deserialize
as deprecated. UseStripeClient#raw_request
andStripeClient#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)
- Remove