From 1dc69a615d2323ee9692d400170bbc87b634bc9c Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Sun, 28 Jan 2024 20:19:12 +0500 Subject: [PATCH] wip --- app/Nova/Resources/Order/Card/CardOrder.php | 2 -- app/Repos/Payment/OnlinePaymentRepo.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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) {