diff --git a/README.md b/README.md index aee1445..ea3afab 100644 --- a/README.md +++ b/README.md @@ -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 } } } diff --git a/src/IPay.php b/src/IPay.php index 04bd53e..fd50a4a 100644 --- a/src/IPay.php +++ b/src/IPay.php @@ -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,