Proposal: Make Laravel Cashier an Adapter Framework for Multiple Payment Gateways #53398
Unanswered
AbdelrahmanDwedar
asked this question in
Ideas
Replies: 2 comments 1 reply
-
even though i use stripe i agree with this, would be nice to have other payment options like Paypal |
Beta Was this translation helpful? Give feedback.
1 reply
-
I strongly Agree with this,We really do need this propose to be Done. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Laravel team and community,
I’d like to propose a significant enhancement to Laravel Cashier that could expand its versatility and usefulness across various payment gateways. Currently, Cashier supports Stripe and Paddle very well, but as the landscape of e-commerce grows, so does the demand for more diverse payment integrations, especially across different regions and markets.
Proposal Overview
The idea is to transform Laravel Cashier into a core adapter framework that defines standardized interfaces for key payment functionalities (e.g., charging, refunding, subscriptions). This would allow developers to plug in custom adapters for any payment gateway—such as Amazon Pay, PayPal, or regional gateways. By following an adapter pattern, the core functionality of Cashier would remain intact, with each gateway adapter implementing these interfaces in a modular way.
Why This Matters
Not all businesses use Stripe or Paddle, and many would benefit from integrating other payment services without losing the elegance and simplicity Laravel Cashier provides. With this adapter-based approach, we can leverage the open-source community to create and maintain integrations with additional gateways, relieving the core team from managing every gateway while making Cashier far more adaptable.
Key Benefits
Next Steps
If this proposal resonates, I’d be happy to start by drafting a prototype adapter for a popular gateway to illustrate how this pattern might work in practice. I’d love to hear feedback from the core team and community on this idea—let’s work together to make Cashier even more powerful and adaptable!
Thank you for considering this suggestion. I believe it would be a huge step forward for Laravel Cashier, aligning it with Laravel’s open-source spirit and community-driven growth.
Beta Was this translation helpful? Give feedback.
All reactions