wip
This commit is contained in:
@@ -27,11 +27,11 @@ class OnlinePaymentRepo
|
|||||||
/**
|
/**
|
||||||
* Set price
|
* 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', [
|
$paymentResponse = Http::get('https://mpi.gov.tm/payment/rest/register.do', [
|
||||||
'orderNumber' => $orderNumber,
|
'orderNumber' => $orderNumber,
|
||||||
'amount' => $this-> getPrice($resource->priceAmount()),
|
'amount' => $this->getPrice($resource->priceAmount()),
|
||||||
'currency' => 934,
|
'currency' => 934,
|
||||||
'language' => 'ru',
|
'language' => 'ru',
|
||||||
'userName' => $resource->branch->billing_username,
|
'userName' => $resource->branch->billing_username,
|
||||||
|
|||||||
Reference in New Issue
Block a user