diff --git a/app/Nova/Resources/Order/Card/CardOrder.php b/app/Nova/Resources/Order/Card/CardOrder.php index e789db1..3bdb9f2 100644 --- a/app/Nova/Resources/Order/Card/CardOrder.php +++ b/app/Nova/Resources/Order/Card/CardOrder.php @@ -147,8 +147,6 @@ class CardOrder extends Resource { $payment = (new OnlinePaymentRepo())->payCardOrder($resource); - info([$payment]); - return $payment['status'] === 'success' ? URL::remote($payment['url']) : sprintf('resources/%s/%s', static::uriKey(), $resource->getKey()); diff --git a/app/Repos/Payment/OnlinePaymentRepo.php b/app/Repos/Payment/OnlinePaymentRepo.php index 868dc6b..107fe1c 100644 --- a/app/Repos/Payment/OnlinePaymentRepo.php +++ b/app/Repos/Payment/OnlinePaymentRepo.php @@ -27,7 +27,7 @@ class OnlinePaymentRepo 'language' => 'ru', 'userName' => $resource->branch->billing_username, 'password' => $resource->branch->billing_password, - 'returnUrl' => urlencode(route('online-payment-store')), + 'returnUrl' => route('online-payment-store'), 'pageView' => 'DESKTOP', 'description' => urlencode('Kart tölegi'), ])->onError(function ($response) {