Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Enabling sandbox mode? #45

Open
OscarEriksen opened this issue Sep 23, 2017 · 1 comment
Open

Enabling sandbox mode? #45

OscarEriksen opened this issue Sep 23, 2017 · 1 comment

Comments

@OscarEriksen
Copy link

Can't seem to find a way to enable sandbox-mode without fiddling straight in the vendor/friendsofapi/-folder which is a big no-no. Looks like the prod-url and not the sandbox is enabled by default.

I will see if I can sort out a quick pull request to sort this out (I'm very swamped with work right now otherwise I would've done it already) if you are open for pull requests and help.

@sagikazarmark
Copy link

As far as I can see you can set the endpoint in the HTTP Client configurator: https://github.com/FriendsOfApi/billogram/blob/master/src/HttpClientConfigurator.php#L90

You need to create a configurator object and then create the client itself like this:

BillogramClient::configure($configurator);

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants