CyberSource / cybersource-sdk-php

PHP SDK for Cybersource SOAP Toolkit API
Other
55 stars 58 forks source link

Cybs.ini should be picked up from current or configurable directory #19

Open brianmc opened 9 years ago

brianmc commented 9 years ago

Having cybs.ini inside the sdk itself is great for tests and built-in samples but you really want to have the configuration within your application. In addition if you use something like Azure/heroku auto-deploys you really can't change anything in the SDK/vendor dirs.

What I was able to do to work around was just set the include path to the current dir, where my config was and maybe that's enough if it is documented.

set_include_path(getcwd());

thwiv commented 8 years ago

I would say the better workaround is to write a class that extends CybsClient and then write your own constructor. This also allows you to have more than one CyberSource account if need be.

jrgonzalezrios commented 6 years ago

@thwiv That worked for me, thanks

gmorosdev commented 5 years ago

I would say the better workaround is to write a class that extends CybsClient and then write your own constructor. This also allows you to have more than one CyberSource account if need be.

I agree with @thwiv, the package sould support manage more than one business account