stripe / stripe-php

PHP library for the Stripe API.
https://stripe.com
MIT License
3.74k stars 849 forks source link

Introduce StripeClient.rawRequest as a canonical way to request Stripe API #1732

Closed prathmesh-stripe closed 2 months ago

prathmesh-stripe commented 2 months ago

Introducing StripeClient.rawRequest, a new way to request Stripe APIs. Previously available only in beta, StripeClient.rawRequest now has general availability.

If you

you can use the rawRequest method on the StripeClient.

Changelog

// For GET requests, the params argument must be null, and you should write the query string explicitly. $get_response = $stripe->rawRequest('get', '/v1/beta_endpoint?caveat=emptor', null, [ "stripe_version" => "2022-11_15", ]);