migrate *** ** * ***** **** ***

This commit is contained in:
2024-09-30 18:23:37 +05:00
parent b1bf137ff1
commit 9fecfccf22
5 changed files with 121 additions and 5 deletions

View File

@@ -37,7 +37,7 @@ class MakePaymentNovaVisaMaster extends Action
}
return $payment['status'] === 'success'
? ActionResponse::redirect($payment['url'])
? ActionResponse::openInNewTab($payment['url'])
: ActionResponse::danger('Töleg ýerinde näsazlyk!');
}
@@ -78,9 +78,9 @@ class MakePaymentNovaVisaMaster extends Action
'language' => 'ru',
'userName' => $resource->branch->billing_username,
'password' => $resource->branch->billing_password,
'returnUrl' => route('online-payment-store'),
'returnUrl' => route('online-payment-store-visa-master'),
'pageView' => 'DESKTOP',
'description' => 'Kart tölegi',
'description' => 'Visa/Master tölegi',
])->onError(function ($response) {
Log::channel('halkbank_payment_error')
->error('Payment error', [
@@ -105,8 +105,8 @@ class MakePaymentNovaVisaMaster extends Action
'description' => 'Visa/Master tölegi',
'orderId' => $paymentResponse['orderId'],
'formUrl' => $paymentResponse['formUrl'],
'successUrl' => route('online-payment-store'),
'errorUrl' => route('online-payment-store'),
'successUrl' => route('online-payment-store-visa-master'),
'errorUrl' => route('online-payment-store-visa-master'),
'api_client' => config('app.url'),
'username' => $resource->branch->billing_username,
'paymentStatus' => OnlinePaymentRepo::PENDING,