Skip to content

Commit

Permalink
Garanti 3D_PAY fix
Browse files Browse the repository at this point in the history
Signed-off-by: Muharrem ERİN <[email protected]>
  • Loading branch information
mewebstudio committed Dec 19, 2018
1 parent 8c5f6fa commit 3142d1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion examples/garanti/regular/_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
'client_id' => '7000679',
'terminal_id' => '30691298',
'username' => 'PROVAUT',
'terminal_username' => 'PROVOOS',
'password' => '123qweASD/',
'refund_username' => 'PROVRFN',
'refund_password' => '123qweASD/',
Expand Down
4 changes: 2 additions & 2 deletions examples/garanti/regular/response.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
}

$order_id = date('Ymd') . strtoupper(substr(uniqid(sha1(time())),0,4));
$amount = (double) 100;
$amount = (double) 1;

$order = [
'id' => $order_id,
'name' => 'John Doe', // optional
'email' => '[email protected]', // optional
'user_id' => '12', // optional
'amount' => $amount,
'installment' => '0',
'installment' => '1',
'currency' => 'TRY',
'ip' => $ip,
'transaction' => 'pay', // pay => S, pre => preauth
Expand Down
2 changes: 1 addition & 1 deletion src/GarantiPos.php
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ public function get3DFormData()
$hash_data = $this->make3dHashData($security_data);

$inputs = [
'secure3dsecuritylevel' => $this->account->model == '3d_pay' ? '3D_Pay' : '3D',
'secure3dsecuritylevel' => $this->account->model == '3d_pay' ? '3D_PAY' : '3D',
'mode' => $this->mode,
'apiversion' => $this->version,
'terminalprovuserid' => $this->account->username,
Expand Down

0 comments on commit 3142d1b

Please sign in to comment.