mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-05 18:52:44 +01:00
Merge pull request #4990 from beganovich/v5-2502-stripe-description
(v5) Add invoices as description for Stripe payment
This commit is contained in:
commit
fe5d259df3
@ -63,7 +63,7 @@ class CreditCard
|
||||
'amount' => $this->stripe->convertToStripeAmount($data['total']['amount_with_fee'], $this->stripe->client->currency()->precision),
|
||||
'currency' => $this->stripe->client->getCurrencyCode(),
|
||||
'customer' => $this->stripe->findOrCreateCustomer(),
|
||||
'description' => collect($data['invoices'])->pluck('id'), // TODO: More meaningful description.
|
||||
'description' => ctrans('texts.invoices') . ': ' . collect($data['invoices'])->pluck('invoice_number'), // TODO: More meaningful description.
|
||||
];
|
||||
|
||||
$payment_intent_data['setup_future_usage'] = 'off_session';
|
||||
|
Loading…
Reference in New Issue
Block a user