Skip to content

Commit

Permalink
🤓 Added order_id to rdirect url
Browse files Browse the repository at this point in the history
  • Loading branch information
gabiezur committed Nov 17, 2020
1 parent 99fda75 commit 2bb22a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class PaymentController

if (isset($response->status) && $response->status === CheckoutStatus::Created) {
return IPay::redirect($response);
// IPay::redirectURL($response); - will be used in some cases, like InertiaJS
// IPay::redirectUrl($response); - will be used in some cases, like InertiaJS
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/IPay.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function checkout(string $intent, int $order_id, array $units, array $ite

return $this->postRequest($url, [
'intent' => $intent,
'redirect_url' => url(config('ipay.redirect_url')),
'redirect_url' => url(config('ipay.redirect_url')) . '?order_id=' . $order_id,
'shop_order_id' => $order_id,
'locale' => config('ipay.language'),
'show_shop_order_id_on_extract' => true,
Expand Down

0 comments on commit 2bb22a4

Please sign in to comment.