Class '\Omnipay\PayPal\ExpressGateway' not found lol
Closed this issue · 2 comments
soly2014 commented
Class '\Omnipay\PayPal\ExpressGateway' not found lol
kevindierkx commented
You receive this message when the package defaults to it's default payment provider. Make sure you publish the config and change the driver to whatever you please. (Also make sure you required the correct driver dependencies like omnipay/mollie
in your composer.json)
A correct config would look something like the following:
<?php
return [
'default' => 'mollie',
'gateways' => [
'mollie' => [
'driver' => 'Mollie',
'options' => [
'apiKey' => getenv('MOLLIE_API_KEY'),
],
],
],
];
alexw23 commented
There's a paypal express example here:
https://github.com/ignited/laravel-omnipay#paypal-express-example
Otherwise your issue should be reposted in https://github.com/thephpleague/omnipay-paypal as it's unrelated to laravel-omnipay.