mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
17 lines
310 B
PHP
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);
|
|
}
|
|
}
|