Skip to content

Commit

Permalink
Merge pull request #29 from rfmhb2/master
Browse files Browse the repository at this point in the history
add redirectUrl method
  • Loading branch information
RTLer authored Oct 2, 2018
2 parents fd15604 + d4fdc10 commit 932059a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Laravel/Facade/Zarinpal.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Illuminate\Support\Facades\Facade;

/**
* @method static request($callbackURL, $Amount, $Description, $Email = null, $Mobile = null)
* @method static request($callbackURL, $Amount, $Description, $Email = null, $Mobile = null,$additionalData = null)
* @method static verify($status, $amount, $authority)
* @method static redirect()
* @method static getDriver()
Expand Down
7 changes: 7 additions & 0 deletions src/Zarinpal.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ public function redirect()
header('Location: '.sprintf($this->redirectUrl, $this->Authority));
die;
}
/**
* @return string
*/
public function redirectUrl()
{
return sprintf($this->redirectUrl, $this->Authority);
}

/**
* @return DriverInterface
Expand Down

0 comments on commit 932059a

Please sign in to comment.