diff --git a/src/Payir/Payir.php b/src/Payir/Payir.php index 8dd06648..1f8e1d31 100644 --- a/src/Payir/Payir.php +++ b/src/Payir/Payir.php @@ -112,7 +112,7 @@ function getCallback() */ protected function sendPayRequest() { - $this->updTransaction(); + $this->newTransaction(); $fields = [ 'api' => $this->config->get('gateway.payir.api'), 'amount' => $this->amount, @@ -193,4 +193,4 @@ protected function verifyPayment() $this->newLog($response['errorCode'], PayirReceiveException::$errors[ $response['errorCode'] ]); throw new PayirReceiveException($response['errorCode']); } -} \ No newline at end of file +}