Skip to content

Commit

Permalink
fix callback url
Browse files Browse the repository at this point in the history
  • Loading branch information
hsharghi authored Aug 3, 2021
1 parent c7b25cb commit ae9ecc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Drivers/Asanpardakht/Asanpardakht.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ public function token(): array
'localInvoiceId' => $this->invoice->getUuid(),
'amountInRials' => $this->invoice->getAmount(),
'localDate' => $this->getTime()['content'],
'callbackURL' => $this->settings->callbackUrl . "?" . http_build_query(['invoice' => $this->invoice->getUuid()]),
'callbackURL' => $this->settings->callbackUrl . (str_contains($this->settings->callbackUrl, '?') ? "&" : "?")
. http_build_query(['invoice' => $this->invoice->getUuid()]),
'paymentId' => "0",
'additionalData' => '',
]);
Expand Down

0 comments on commit ae9ecc6

Please sign in to comment.