amsgames / laravel-shop

Laravel shop package
MIT License
482 stars 166 forks source link

[Unclear] Custom Omnipay gateway #8

Closed Raou1d closed 8 years ago

Raou1d commented 8 years ago

Hey guys,

First of all awesome package! Thanks a lot! I'm sorry to ask this here but i can't figuur out if it's possible to add Omnipay gateways directly into the gateway array of laravel-shop like so:

'gateways' => [
    'paypal'            =>  Amsgames\LaravelShopGatewayPaypal\GatewayPayPal::class,
    'paypalExpress'     =>  Amsgames\LaravelShopGatewayPaypal\GatewayPayPalExpress::class,
    'someOmnipayGateway' => Vendor\Package\SomeOmnipayPackage::class,
],

Your documentation only states: Install Omnipay Gateway to enable other payment services but i can't find any thing in the source code that would handle a custom omnipay gateway.

Am i correct in assuming that a gateway class is needed that extents Amsgames\LaravelShop\Core\PaymentGateway and defines the required functions using the custom gateway omnipay package?

Thanks,

Raoul

Raou1d commented 8 years ago

I'm sorry! I realized that the 'Omnipay Gateway' link is not a link to thephpleague/omnipay but a package explaining exactly what i needed to know!