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.
Jan 1, 2016
3
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.
Please or to participate in this conversation.