Prepare amount returns type int (#4)

* Prepare amount returns type int
This commit is contained in:
Anatoly Cherkasov 2020-11-05 11:51:33 +03:00 committed by GitHub
parent 1626aaf43a
commit 3dd6d2dc93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,7 @@ class Rbkmoney_PaymentPaymentModuleFrontController extends ModuleFrontController
];
$logs = [
'request' => $request,
'json' => json_encode($data),
];
Rbkmoney_Payment::logger("Create invoice - begin", $logs);
@ -154,7 +155,8 @@ class Rbkmoney_PaymentPaymentModuleFrontController extends ModuleFrontController
function prepareAmount($amount)
{
return $amount * 100;
$prepareAmount = $amount * 100;
return (int)$prepareAmount;
}
/**