diff --git a/src/Gateway.php b/src/Gateway.php index aa386cf..1f1dcee 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -27,6 +27,8 @@ class Gateway */ protected $id; + protected $testing = false; + /** * The Moneris API Token. * @@ -66,7 +68,7 @@ public function __construct(string $id, string $token, string $environment) */ public function purchase(array $params = []) { - array_merge($params, [ + $params = array_merge($params, [ 'type' => 'purchase', 'crypt_type' => Crypt::SSL_ENABLED_MERCHANT, ]);