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

Multiple payment providers #1591

Closed AlastairDewar closed 10 months ago

AlastairDewar commented 10 months ago

Hello,

I wondered if there was a reason why Cashier had a separate repo for Stripe and Paddle (as well as Braintree and Mollie previously)?

I am working on a project which has multiple payment providers (Stripe, Apple In-App Purchase, Roku Pay, Google Pay, etc.), and I would have thought the 'Laravel way' would be to add 'drivers' for each of these providers similar to Storage for example.

I would be happy of course to contribute a PR towards the restructuring to support this, but it feels like a large fundamental (and potentially breaking) change that would need more discussion first.

Thanks, Ally

driesvints commented 10 months ago

Payment providers each have very different concepts and ways of how they handle payments. Each having a vastly different API and core concepts, there's no way to unify them into a single package and at the same time be as thorough and flexible as each Cashier package is.