Skip to content

Commit fd50177

Browse files
committed
Add zaringate as redirect's parameter
1 parent 40d6f87 commit fd50177

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Zarinpal.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,12 @@ public function verify($status, $amount, $authority)
8484
}
8585
}
8686

87-
public function redirect()
87+
public function redirect($zarinGate = false)
8888
{
89-
header('Location: ' . $this->startPayAddress . $this->Authority);
89+
if(!$zarinGate)
90+
header('Location: ' . $this->startPayAddress . $this->Authority);
91+
else
92+
header('Location: ' . $this->startPayAddress . $this->Authority . '/ZarinGate');
9093
die;
9194
}
9295

0 commit comments

Comments
 (0)