From a6335d61b3bf19244f9c38084d499aac7b503c4f Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Wed, 24 Apr 2024 19:08:28 +0500 Subject: [PATCH] wip --- app/Repos/Payment/OnlinePaymentRepo.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Repos/Payment/OnlinePaymentRepo.php b/app/Repos/Payment/OnlinePaymentRepo.php index 4b5dcac..1c8a83e 100644 --- a/app/Repos/Payment/OnlinePaymentRepo.php +++ b/app/Repos/Payment/OnlinePaymentRepo.php @@ -27,11 +27,11 @@ class OnlinePaymentRepo /** * Set price * - * @param int $price + * @param int|float|string $price */ - public function getPrice(int|float|string $price): int + public function getPrice(int|float|string $price): string { - return intval(number_format($price, 2, "", "")); + return number_format($price, 2, "", ""); } /** @@ -43,7 +43,7 @@ class OnlinePaymentRepo $paymentResponse = Http::get('https://mpi.gov.tm/payment/rest/register.do', [ 'orderNumber' => $orderNumber, - 'amount' => $this-> getPrice($resource->priceAmount()), + 'amount' => $this->getPrice($resource->priceAmount()), 'currency' => 934, 'language' => 'ru', 'userName' => $resource->branch->billing_username,