1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00
invoiceninja/app/PaymentDrivers/Stripe/Utilities.php
2020-06-01 14:17:29 +02:00

17 lines
310 B
PHP

<?php
namespace App\PaymentDrivers\Stripe;
trait Utilities
{
public function convertFromStripeAmount($amount, $precision)
{
return $amount / pow(10, $precision);
}
public function convertToStripeAmount($amount, $precision)
{
return $amount * pow(10, $precision);
}
}