mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Method to convert to Razorpay specific-amount
This commit is contained in:
parent
87c6241947
commit
ea82318218
@ -94,4 +94,15 @@ class RazorpayPaymentDriver extends BaseDriver
|
|||||||
{
|
{
|
||||||
return $this->payment_method->yourTokenBillingImplmentation();
|
return $this->payment_method->yourTokenBillingImplmentation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the amount to the format that Razorpay supports.
|
||||||
|
*
|
||||||
|
* @param mixed|float $amount
|
||||||
|
* @return int
|
||||||
|
*/
|
||||||
|
public function convertToRazorpayAmount($amount): int
|
||||||
|
{
|
||||||
|
return \number_format((float) $amount * 100, 0, '.', '');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user