Online payment

This commit is contained in:
2024-10-14 20:35:30 +05:00
parent b17357d53f
commit 94cc0e2d19
4 changed files with 76 additions and 26 deletions

View File

@@ -154,7 +154,7 @@ class MakePaymentNovaVisaMaster extends Action
OnlinePaymentHistory::create([
'online_paymantable_id' => $resource->id,
'online_paymantable_type' => '\App\Modules\VisaMasterPaymentOrder\Models\VisaMasterPaymentOrder',
'amount' => $onlinePaymentRepo->getPrice($paymentMethod == 'usd' ? '902.38' : '1058,60'),
'amount' => number_format($amount, 2, '', ''),
'orderNumber' => $orderNumber,
'description' => 'Visa/Master tölegi',
'orderId' => $paymentResponse['orderId'],
@@ -162,7 +162,7 @@ class MakePaymentNovaVisaMaster extends Action
'successUrl' => route('online-payment-store-visa-master'),
'errorUrl' => route('online-payment-store-visa-master'),
'api_client' => config('app.url'),
'username' => $resource->branch->billing_username,
'username' => $resource->branch->billing_visa_master_username,
'paymentStatus' => OnlinePaymentRepo::PENDING,
]);