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 671 forks source link

Use `createPreview` method #1716

Open edalzell opened 5 days ago

edalzell commented 5 days ago

Cashier Stripe Version

15.4.3

Laravel Version

11.23.4

PHP Version

8.3

Database Driver & Version

No response

Description

I would like to use the createPreview invoice method but that's in a more current version of the Stripe PHP library.

Apologies if this has been asked/answered elsewhere, but when do you folks upgrade major versions of the PHP library?

Steps To Reproduce

Try to call createPreview:

Cashier::stripe(["stripe_version" => "2024-06-20"])->invoices->createPreview([
  "preview_mode" => "recurring",
  "subscription" => "sub_1123
]);
github-actions[bot] commented 5 days ago

Thank you for reporting this issue!

As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.

If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.

Thank you!