|
@@ -104,7 +104,7 @@ discard block |
|
|
block discarded – undo |
|
104
|
104
|
'TransactionReferenceID' => Request::input('tref') |
|
105
|
105
|
] |
|
106
|
106
|
); |
|
107
|
|
- if($this->invoice->getAmount() != $invoiceDetails['Amount']) { |
|
|
107
|
+ if ($this->invoice->getAmount() != $invoiceDetails['Amount']) { |
|
108
|
108
|
throw new InvalidPaymentException('Invalid amount'); |
|
109
|
109
|
} |
|
110
|
110
|
$iranTime = new DateTime('now', new DateTimeZone('Asia/Tehran')); |
|
@@ -198,7 +198,7 @@ discard block |
|
|
block discarded – undo |
|
198
|
198
|
$terminalCode = $this->settings->terminalCode; |
|
199
|
199
|
$amount = $this->invoice->getAmount(); //rial |
|
200
|
200
|
$redirectAddress = $this->settings->callbackUrl; |
|
201
|
|
- $invoiceNumber = crc32($this->invoice->getUuid()) . rand(0, time()); |
|
|
201
|
+ $invoiceNumber = crc32($this->invoice->getUuid()).rand(0, time()); |
|
202
|
202
|
|
|
203
|
203
|
$iranTime = new DateTime('now', new DateTimeZone('Asia/Tehran')); |
|
204
|
204
|
$timeStamp = $iranTime->format("Y/m/d H:i:s"); |
Please login to merge, or discard this patch.