Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vegimcarkaxhija committed Jun 20, 2024
1 parent 9dd779b commit 33a2027
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/paymentmethods/response.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ private function parsePushRequest()
}

$this->payment = $this->setPostVariable('brq_payment');
$this->payment_method = $this->getPaymentCode($this->setPostVariable('brq_payment_method') ?? $this->setPostVariable('brq_transaction_method'));
if (Tools::getValue('brq_payment_method')) {
$this->payment_method = $this->getPaymentCode(Tools::getValue('brq_payment_method'));
} elseif (Tools::getValue('brq_transaction_method')) {
$this->payment_method = $this->getPaymentCode(Tools::getValue('brq_transaction_method'));
}
$this->statuscode = $this->setPostVariable('brq_statuscode');
$this->statusmessage = $this->setPostVariable('brq_statusmessage');
$this->statuscode_detail = $this->setPostVariable('brq_statuscode_detail');
Expand Down

0 comments on commit 33a2027

Please sign in to comment.