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

twg_'s avatar
Level 6

Payment Gateways

I was wondering if there was a package that I could install into my project that handles multiple gateways. I'm wanting to use Stripe and PayPal but would also like to support some of the less popular ones.

I've looked at Cashier but it only supports Stripe.

0 likes
3 replies
jekinney's avatar

Easiest approach imo from doing just what your wanting to is just use stripes php api and pay pals php api. Basically a package for each. Code a abstract payment class and extend it for each payment type, or an interface. This way you have set method calls and in each specific class (stripe, PayPal) the methods are the same but the code in each method is specific for the payment method.

cimrie's avatar

http://omnipay.thephpleague.com is pretty good - I've only used it in a limited fashion but it promises to support a lot of payment gateways. The 'get started' documentation could be better but you'll find a lot of people talking about it on stack overflow with the 'omnipay' tag.

Please or to participate in this conversation.