mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Add currency sign
This commit is contained in:
parent
dd5c812969
commit
c3a1d21c61
@ -23,6 +23,7 @@ use App\PaymentDrivers\StripePaymentDriver;
|
|||||||
use App\PaymentDrivers\Stripe\Jobs\UpdateCustomer;
|
use App\PaymentDrivers\Stripe\Jobs\UpdateCustomer;
|
||||||
use Stripe\PaymentIntent;
|
use Stripe\PaymentIntent;
|
||||||
use Stripe\PaymentMethod;
|
use Stripe\PaymentMethod;
|
||||||
|
use App\Utils\Number;
|
||||||
|
|
||||||
class CreditCard
|
class CreditCard
|
||||||
{
|
{
|
||||||
@ -62,7 +63,7 @@ class CreditCard
|
|||||||
|
|
||||||
// $description = $this->stripe->decodeUnicodeString(ctrans('texts.invoices') . ': ' . collect($data['invoices'])->pluck('invoice_number')) . " for client {$this->stripe->client->present()->name()}";
|
// $description = $this->stripe->decodeUnicodeString(ctrans('texts.invoices') . ': ' . collect($data['invoices'])->pluck('invoice_number')) . " for client {$this->stripe->client->present()->name()}";
|
||||||
$invoice_numbers = collect($data['invoices'])->pluck('invoice_number')->implode(',');
|
$invoice_numbers = collect($data['invoices'])->pluck('invoice_number')->implode(',');
|
||||||
$description = ctrans('text.stripe_paymenttext', ['invoicenumber' => $invoice_numbers, 'amount' => $data['total']['amount_with_fee'], 'client' => $this->stripe->client->present()->name()]);
|
$description = ctrans('text.stripe_paymenttext', ['invoicenumber' => $invoice_numbers, 'amount' => Number::formatMoney($data['total']['amount_with_fee'], $this->stripe->client), 'client' => $this->stripe->client->present()->name()]);
|
||||||
|
|
||||||
$payment_intent_data = [
|
$payment_intent_data = [
|
||||||
'amount' => $this->stripe->convertToStripeAmount($data['total']['amount_with_fee'], $this->stripe->client->currency()->precision, $this->stripe->client->currency()),
|
'amount' => $this->stripe->convertToStripeAmount($data['total']['amount_with_fee'], $this->stripe->client->currency()->precision, $this->stripe->client->currency()),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user