calvinfroedge / codeigniter-payments

Spark for Uniform Payments in CodeIgniter, based on PHP-Payments. Supports 12+ payment gateways.
242 stars 67 forks source link

Config loading #18

Closed jwensley2 closed 12 years ago

jwensley2 commented 12 years ago

While trying to setup a config file for beanstream I noticed that it didn't seem to be loading the config I had setup.

Looking at libraries/payments.php on line 60

if(file_exists(dirname(__DIR__)."/config/drivers/$gateway"))

this should be more like

if(file_exists(dirname(__DIR__)."/config/drivers/{$gateway}.php"))

shouldn't it?

Also the documentation seems to suggest putting the file in /config/ not /config/drivers/

calvinfroedge commented 12 years ago

These commits should resolve:

1d417eec0e0e38a17388510c301829ccd5e85f4c

225b47bc8d8fea5c4a5f03feeaa8e90733553d26