#amit_invoice-multicurrency
1 messages ¡ Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- amit_api, 2 days ago, 38 messages
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1247198604494377124
đ Have more to share? Add details, code, screenshots, videos, etc. below.
Hey
If you use Stripe Checkout then you can take advantage of Adaptive Pricing: https://docs.stripe.com/payments/checkout/adaptive-pricing
stripe checkout in setup mode for sepa_debit payment method
Ah in setup mode -- there is no currency conversion involved in that case
As you aren't taking payment, you are just collecting the PaymentMethod
we're taking payment as well
using create invoice
invoice = await stripe.invoices.create({ customer: userInfo.stripeCustomer, auto_advance: true, currency: 'eur', collection_method: 'charge_automatically', pending_invoice_items_behavior: 'include', default_payment_method: userInfo.stripePaymentID, metadata: { client_reference_id: process.env.ENV_NAME + '_' + userInfo.id }, });
Here in currency we use default USD but for sepa_debit I'm using euro
so I want to know if stripe did this conversion on their side for USD to EURO
Ah I see.
No, we don't have any way to automatically handle that conversion for you in this flow
Does that Invoice get created immediately?
Or later on?
You create the Invoice to charge the customer immediately after collecting their PaymentMethod?
Yes
and it was for future as well
i save the payment method for future use and auto charge based on the amount of customer purchase
Okay so it isn't just one-time at time of Checkout then
That is what I wanted to clarify, because if that was the case then you could use Adaptive Pricing like I linked above
Otherwise, you'll want to create multi-currency Prices (using currency_options see: https://docs.stripe.com/api/prices/create#create_price-currency_options )
But in this case you do have to do the conversion yourself
We don't perform that for you
How your this create price work?
because our customer always add currency based on their need it's not fixed
You would create a Price with all the currencies you support, then you indicate the Price of the currency on the Invoice (as you do above) and it will use the correct currency on your Price
how much stripe charge fees for it?
after the payment is done do I have to delete this price or auto delete it?
There aren't any fees here
And no you don't delete the Price -- you just set it one time on the Price
I'd recommend testing it out
That will give you the best sense of how it works
Suppose I created the price object how can I add it with https://docs.stripe.com/api/invoices/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
create invoice
You create an Invoice Item with that Price
When you do that, you specify currency: https://docs.stripe.com/api/invoiceitems/create#create_invoiceitem-currency
Okay, got it thanks, let me try that.