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

This commit is contained in:
nurmuhammet committed 2024-09-30 18:23:37 +05:00
1 parent b1bf137ff1
commit 9fecfccf22
5 files changed
+121 -5

No files matched your search

@@ -37,7 +37,7 @@ public function handle(ActionFields $fields, Collection $models)
}
return $payment['status'] === 'success'
? ActionResponse::redirect($payment['url'])
? ActionResponse::openInNewTab($payment['url'])
: ActionResponse::danger('Töleg ýerinde näsazlyk!');
}
@@ -78,9 +78,9 @@ public function order($resource, $paymentMethod)
'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 @@ public function order($resource, $paymentMethod)
'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,