Skip to content

Commit

Permalink
Update Zarinpal.php
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
vahidalvandi authored May 28, 2020
1 parent 8ad634d commit a208917
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Zarinpal.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class Zarinpal
{
private $redirectUrl = 'https://www.zarinpal.com/pg/StartPay/%u';
private $redirectUrl = 'https://www.zarinpal.com/pg/StartPay/%s';
private $merchantID;
private $driver;
private $Authority;
Expand Down Expand Up @@ -116,7 +116,7 @@ public function getDriver()
*/
public function enableSandbox()
{
$this->redirectUrl = 'https://sandbox.zarinpal.com/pg/StartPay/%u';
$this->redirectUrl = 'https://sandbox.zarinpal.com/pg/StartPay/%s';
$this->getDriver()->enableSandbox();
}

Expand Down

0 comments on commit a208917

Please sign in to comment.