seegno / uphold-sdk-php

Uphold PHP SDK
http://seegno.com
28 stars 24 forks source link

Add Sandbox option #137

Closed nunorafaelrocha closed 8 years ago

nunorafaelrocha commented 8 years ago

This PR adds sandbox option allowing to choose which API url will be used on the client requests. It is also possible to provide base_url option to override this behaviour.

The sandbox option was added to CreateTokenCommand allowing to create a token in Uphold Sandbox.

This also adds sandbox option as true to the functional tests using the Sandbox API instead of the production one.

All examples were updated with the sandbox option which makes the developers aware of the sandbox option, although it's not mandatory.

Closes #84.