barryvdh / laravel-omnipay

Omnipay ServiceProvider for Laravel
MIT License
168 stars 46 forks source link

Changed logic of the getting configuration values for gateways #18

Closed siarheipashkevich closed 6 years ago

ammonkc commented 6 years ago

This seems to break the way the GatewayManager gets the default gateway from the config. for example for the omnipay authorize.net gateway $gateway->getName() returns the name "Authorize.Net AIM" which doesn't match the array key in the gateway config which is:

'gateways' => [
        'AuthorizeNet_AIM' => [
            'apiLoginId'    => env('AUTHORIZENET_LOGIN_ID'),
            'transactionKey' => env('AUTHORIZENET_TRANSACTION_KEY'),
        ],
    ],

it's not able to retrieve the default gateway config.