wip
This commit is contained in:
@@ -201,3 +201,9 @@ function localeAppUrl(): string
|
|||||||
{
|
{
|
||||||
return config('app.locale_app.url');
|
return config('app.locale_app.url');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function convertToOriginalFormat($apiPrice) {
|
||||||
|
// Convert to float and divide by 100
|
||||||
|
$originalPrice = intval($apiPrice) / 100;
|
||||||
|
return number_format($originalPrice, 2, '.', ''); // Format with 2 decimal places
|
||||||
|
}
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ class OnlinePaymentRepo
|
|||||||
'title' => $payment_status ? __('Payment is successful') : __('Payment has failed'),
|
'title' => $payment_status ? __('Payment is successful') : __('Payment has failed'),
|
||||||
'pnr' => $paymentHistory->orderNumber,
|
'pnr' => $paymentHistory->orderNumber,
|
||||||
'branch_name' => $bank_branch->name,
|
'branch_name' => $bank_branch->name,
|
||||||
'price_amount' => $paymentHistory->amount,
|
'price_amount' => convertToOriginalFormat($paymentHistory->amount) . ' TMT',
|
||||||
'return_url' => url('/work-place/resources/nova-visa-master-payment-orders/' . $resource->visa_master_payment_order_id),
|
'return_url' => url('/work-place/resources/nova-visa-master-payment-orders/' . $resource->visa_master_payment_order_id),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user