Skip to content

Commit 932059a

Browse files
authored
Merge pull request #29 from rfmhb2/master
add redirectUrl method
2 parents fd15604 + d4fdc10 commit 932059a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/Laravel/Facade/Zarinpal.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Illuminate\Support\Facades\Facade;
66

77
/**
8-
* @method static request($callbackURL, $Amount, $Description, $Email = null, $Mobile = null)
8+
* @method static request($callbackURL, $Amount, $Description, $Email = null, $Mobile = null,$additionalData = null)
99
* @method static verify($status, $amount, $authority)
1010
* @method static redirect()
1111
* @method static getDriver()

src/Zarinpal.php

+7
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,13 @@ public function redirect()
9494
header('Location: '.sprintf($this->redirectUrl, $this->Authority));
9595
die;
9696
}
97+
/**
98+
* @return string
99+
*/
100+
public function redirectUrl()
101+
{
102+
return sprintf($this->redirectUrl, $this->Authority);
103+
}
97104

98105
/**
99106
* @return DriverInterface

0 commit comments

Comments
 (0)