Skip to content

Commit

Permalink
Helper dosyasında "createPosGateway" fonksiyonu güncellendi.
Browse files Browse the repository at this point in the history
  • Loading branch information
yorulmazsinan committed Sep 17, 2024
1 parent 2bceeee commit 5496dac
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function createPosAccount($bank, $status)
$config['banks'][$bank]['accounts'][$status]['client_id'],
$config['banks'][$bank]['accounts'][$status]['username'],
$config['banks'][$bank]['accounts'][$status]['password'],
PosInterface::MODEL_NON_SECURE,
PosInterface::MODEL_3D_SECURE,
$config['banks'][$bank]['accounts'][$status]['store_key'],
PosInterface::LANG_TR
);
Expand All @@ -98,7 +98,7 @@ function createPosAccount($bank, $status)
$config['banks'][$bank]['accounts'][$status]['client_id'],
$config['banks'][$bank]['accounts'][$status]['username'],
$config['banks'][$bank]['accounts'][$status]['password'],
PosInterface::MODEL_NON_SECURE,
PosInterface::MODEL_3D_SECURE,
$config['banks'][$bank]['accounts'][$status]['store_key'],
PosInterface::LANG_TR
);
Expand All @@ -108,7 +108,7 @@ function createPosAccount($bank, $status)
$config['banks'][$bank]['accounts'][$status]['client_id'],
$config['banks'][$bank]['accounts'][$status]['username'],
$config['banks'][$bank]['accounts'][$status]['password'],
PosInterface::MODEL_NON_SECURE,
PosInterface::MODEL_3D_SECURE,
$config['banks'][$bank]['accounts'][$status]['store_key']
);
} elseif ($bank == 'garanti') {
Expand All @@ -118,7 +118,7 @@ function createPosAccount($bank, $status)
$config['banks'][$bank]['accounts'][$status]['username'],
$config['banks'][$bank]['accounts'][$status]['password'],
$config['banks'][$bank]['accounts'][$status]['terminal_number'],
PosInterface::MODEL_NON_SECURE,
PosInterface::MODEL_3D_SECURE,
$config['banks'][$bank]['accounts'][$status]['store_key']
);
} elseif ($bank == 'yapikredi') {
Expand All @@ -129,7 +129,7 @@ function createPosAccount($bank, $status)
$config['banks'][$bank]['accounts'][$status]['password'],
$config['banks'][$bank]['accounts'][$status]['terminal_number'],
$config['banks'][$bank]['accounts'][$status]['posnet_id'],
PosInterface::MODEL_NON_SECURE,
PosInterface::MODEL_3D_SECURE,
$config['banks'][$bank]['accounts'][$status]['enc_key']
);
}
Expand Down Expand Up @@ -218,7 +218,7 @@ function receivePayment($orderId, $isUser = true, $userInformations = true)

$pos->prepare($orderInformations, PosInterface::TX_TYPE_PAY_AUTH); // Ödeme için hazırlık yapıyoruz.

if ($pos->getAccount()->getModel() === PosInterface::MODEL_NON_SECURE && PosInterface::TX_TYPE_PAY_POST_AUTH !== PosInterface::TX_TYPE_PAY_AUTH) {
if ($pos->getAccount()->getModel() === PosInterface::MODEL_3D_SECURE && PosInterface::TX_TYPE_PAY_POST_AUTH !== PosInterface::TX_TYPE_PAY_AUTH) {
$pos->payment($card);
} else {
$pos->payment();
Expand Down

0 comments on commit 5496dac

Please sign in to comment.