Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

yassineqoraiche's avatar

Switch between cashier packages Strip and braintree

I want to give the user ability to switch between cashier libraries (stripe, Braintree) in the application setup, unfortunately they are using the same namespaces and functionality which makes hard to install them both, but there are no conflicts in migrations since they use the same DB structure, I'm thinking about forking each of those libraries and create separated services for them and inject selected service to use, any suggestion guys?

0 likes
0 replies

Please or to participate in this conversation.