Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

Commit

Permalink
Updates mistake in purchase to rewrite existing params variable with …
Browse files Browse the repository at this point in the history
…merged array
  • Loading branch information
Craig Paul committed Oct 19, 2016
1 parent 36ce858 commit 613cb0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class Gateway
*/
protected $id;

protected $testing = false;

/**
* The Moneris API Token.
*
Expand Down Expand Up @@ -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,
]);
Expand Down

0 comments on commit 613cb0d

Please sign in to comment.