#commento
1 messages · Page 1 of 1 (latest)
What's the issue exactly? Can you describe what's happening?
the invoice items is created but not attached to the invoice
Ok. Can you share an invoice item id and invoice id where this is happening then?
invoice item: ii_1NTQMyBQ9x1ydwKFFHh2XJVF
invoice: in_1NTQMzBQ9x1ydwKF36oNcGQF
sorry I put the wrong id, the edited one is correct now
I already put the:
pending_invoice_items_behavior='include',
when calling the stripe.Invoice.create() that is perfromed after the invoice items add
Ok looking
Oh you didn't pass pending_invoice_items_behavior correctly
You put it in the metadata
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
no I put it also in the correct place after
sorry first I did that error but the following call is correct
here:in_1NTQP7BQ9x1ydwKFZPL4qB7I
invoice item: ii_1NTQP6BQ9x1ydwKFVZhBBkdL
I think you need to set the currency on the invoice: https://stripe.com/docs/api/invoices/create#create_invoice-currency
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
To gbp
Since the customer's default currency isn't gbp
But the invoice item is in gbp
ok so that's the issue got it
I think so. Recommend you try it