After a user runs "composer require [payment-gateway]", they would register the payment gateway in my panel.
My panel would auto detect the payment gateway by looking into the composer.lock for the keyword "omnipay"
The problem is, now I know the gateway exists. I have no way of accessing it because each gateway have different sub gateways (PayPal Express, PayPal REST API, PayPal Pro).
I want to be able to call the package "PayPal" and get PayPal Express, PayPal REST API, and PayPal Pro and the names to call them by when I run Omnipay::create("Gateway_Package")
tl;dr : let's say I installed the PayPal package, I want to know what sub gateways are available (PayPal Express, PayPal Pro, etc) and display them programmatically so it works with all other supported gateways.
Hi, I am developing a flexible eCommerce panel, and I am trying to implement Omnipay.
I am trying my best to not make it so that users can add supported payment gateways on https://github.com/thephpleague/omnipay#payment-gateways
After a user runs "composer require [payment-gateway]", they would register the payment gateway in my panel.
My panel would auto detect the payment gateway by looking into the composer.lock for the keyword "omnipay"
The problem is, now I know the gateway exists. I have no way of accessing it because each gateway have different sub gateways (PayPal Express, PayPal REST API, PayPal Pro).
I want to be able to call the package "PayPal" and get PayPal Express, PayPal REST API, and PayPal Pro and the names to call them by when I run
Omnipay::create("Gateway_Package")
tl;dr : let's say I installed the PayPal package, I want to know what sub gateways are available (PayPal Express, PayPal Pro, etc) and display them programmatically so it works with all other supported gateways.