Skip to content

Commit

Permalink
Update sandbox parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
toooni committed Mar 15, 2019
1 parent 24752aa commit db861b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Api.php
Expand Up @@ -26,7 +26,7 @@ public function __construct(array $options)

public function getCheckoutApi(): CheckoutApi
{
$sandbox = $this->options['environment'] === self::PRODUCTION ? -1 : 1;
$sandbox = $this->options['environment'] === self::PRODUCTION ? 0 : 1;

return new CheckoutApi($this->options['secrety_key'], $sandbox);
}
Expand Down

0 comments on commit db861b8

Please sign in to comment.