@@ -58,7 +58,7 @@ |
||
58 | 58 | */ |
59 | 59 | public function purchase() |
60 | 60 | { |
61 | - $this->invoice->uuid($this->invoice->getNumericUuid() . time()); |
|
61 | + $this->invoice->uuid($this->invoice->getNumericUuid().time()); |
|
62 | 62 | $details = $this->invoice->getDetails(); |
63 | 63 | |
64 | 64 | $amount = $this->invoice->getAmount() * ($this->settings->currency == 'T' ? 10 : 1); // convert to rial |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | public function __construct(Invoice $invoice, $settings) |
46 | 46 | { |
47 | 47 | $this->invoice($invoice); |
48 | - $this->settings = (object)$settings; |
|
48 | + $this->settings = (object) $settings; |
|
49 | 49 | $this->client = new Client(); |
50 | 50 | } |
51 | 51 | |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | */ |
60 | 60 | public function purchase() |
61 | 61 | { |
62 | - $this->invoice->uuid(intval(1, time()) . $this->invoice->getNumericUuid()); |
|
62 | + $this->invoice->uuid(intval(1, time()).$this->invoice->getNumericUuid()); |
|
63 | 63 | $data = [ |
64 | 64 | 'api_key' => $this->settings->merchantId, |
65 | 65 | 'order_id' => $this->invoice->getUuid(), |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | */ |
123 | 123 | public function pay(): RedirectionForm |
124 | 124 | { |
125 | - $payUrl = $this->settings->apiPaymentUrl . $this->invoice->getTransactionId(); |
|
125 | + $payUrl = $this->settings->apiPaymentUrl.$this->invoice->getTransactionId(); |
|
126 | 126 | |
127 | 127 | return $this->redirectWithForm($payUrl, [], 'GET'); |
128 | 128 | } |