Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
khanzadimahdi committed Jan 5, 2020
1 parent 92c1085 commit 5ba3e91
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Drivers/Zibal/Zibal.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,11 @@ public function purchase()
*/
public function pay()
{
if (strtolower($this->getMode()) == 'direct') {
$payUrl = $this->settings->apiPaymentUrl.$this->invoice->getTransactionId().'/direct';
} else {
$payUrl = $this->settings->apiPaymentUrl.$this->invoice->getTransactionId();
}
$payUrl = $this->settings->apiPaymentUrl.$this->invoice->getTransactionId();

if (strtolower($this->settings->mode) == 'direct') {
$payUrl .= '/direct';
}

// redirect using laravel logic
return redirect()->to($payUrl);
Expand Down

0 comments on commit 5ba3e91

Please sign in to comment.