laravel / cashier-stripe

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.
https://laravel.com/docs/billing
MIT License
2.37k stars 667 forks source link

[15.x] Add stripe sdk headers capabilty when creating a new customer #1691

Closed mbarreiro85 closed 1 month ago

mbarreiro85 commented 1 month ago

This allows users to use idempotency keys when creating new customers

https://docs.stripe.com/api/idempotent_requests

driesvints commented 1 month ago

Thank you for this PR. This is perhaps the better and easiest solution indeed. However, we can't do this on a patch release as it's a breaking change to the method signatures. Also, I wouldn't call this $headers as that's not what these options are. They're request modifiers. So maybe $requestOptions are a better naming, after the Stripe object.

Could you perhaps target 16.x with this? Thanks!