Skip to content

v1.0.2

Compare
Choose a tag to compare
@Sebbo94BY Sebbo94BY released this 20 Nov 09:55
· 14 commits to master since this release
6eb2524

Renamed $environment variable to $sandbox and updated the type from string to boolean.

Setting the $sandbox variable to true, will activate the Sandbox API for testing purposes.

Before:

$pscpayment = new PaysafecardPaymentController($key, "TEST");
$pscpayout = new PaysafecardPayoutController($key, "TEST");
$pscrefund = new PaysafecardRefundController($key, "TEST");

Now:

$pscpayment = new PaysafecardPaymentController($key, true);
$pscpayout = new PaysafecardPayoutController($key, true);
$pscrefund = new PaysafecardRefundController($key, true);

The second parameter isn't required for the Sandbox / Testing API. By default, this value is set to true.

If you want to use the production API, please set the second parameter to false:

$pscpayment = new PaysafecardPaymentController($key, false);
$pscpayout = new PaysafecardPayoutController($key, false);
$pscrefund = new PaysafecardRefundController($key, false);