This commit is contained in:
nurmuhammet committed 2024-01-28 20:19:12 +05:00
1 parent 2936e1081d
commit 1dc69a615d
2 files changed
+1 -3

No files matched your search

@@ -147,8 +147,6 @@ public static function redirectAfterUpdate(NovaRequest $request, $resource): URL
{ {
$payment = (new OnlinePaymentRepo())->payCardOrder($resource); $payment = (new OnlinePaymentRepo())->payCardOrder($resource);
info([$payment]);
return $payment['status'] === 'success' return $payment['status'] === 'success'
? URL::remote($payment['url']) ? URL::remote($payment['url'])
: sprintf('resources/%s/%s', static::uriKey(), $resource->getKey()); : sprintf('resources/%s/%s', static::uriKey(), $resource->getKey());
+1 -1
View File
@@ -27,7 +27,7 @@ public function payCardOrder($resource): array
'language' => 'ru', 'language' => 'ru',
'userName' => $resource->branch->billing_username, 'userName' => $resource->branch->billing_username,
'password' => $resource->branch->billing_password, 'password' => $resource->branch->billing_password,
'returnUrl' => urlencode(route('online-payment-store')), 'returnUrl' => route('online-payment-store'),
'pageView' => 'DESKTOP', 'pageView' => 'DESKTOP',
'description' => urlencode('Kart tölegi'), 'description' => urlencode('Kart tölegi'),
])->onError(function ($response) { ])->onError(function ($response) {