This commit is contained in:
nurmuhammet committed 2024-04-24 19:08:28 +05:00
1 parent 0c799bf579
commit a6335d61b3
1 file changed
+4 -4
+4 -4
View File
@@ -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 @@ public function payCardOrder($resource): array
$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,