#samir000

1 messages · Page 1 of 1 (latest)

sacred knollBOT
hasty crag
sweet oar
#

i want currncy update based on this dropdown

hasty crag
#

Can you try the Doc above?

sweet oar
#

i have tried but each time i need to pass currency at time of checkout session.

i need update currency on given address dropdown

hasty crag
#

No, at the creation time of the Checkout Session you only need to pass the price id

#

pass the multiple-currency Price Id there

sweet oar
#

Yes i have added but currency i need to pass each time

#

const session = await stripe.checkout.sessions.create({
line_items: [{
price: 'price_123', // Replace with the appropriate price ID
quantity: 1,
}],
mode: 'subscription',
currency: 'usd', // Replace with the user's preferred currency
success_url: 'https://your-website.com/success',
cancel_url: 'https://your-website.com/cancel',
});

hasty crag
#

No you don't, just try to remove it

sweet oar
#

no need of currency pas

#

?

hasty crag
#

Yes, can you try it?

#

Make sure to use the Multi currency Price Id

sweet oar
#

trying

#

i have tried with remove of currency at time of chekout process but not working it only showing default one

hasty crag
sweet oar
#

req_7orHDlqfbofXph

hasty crag
#

test_localtion_in@example.com

sweet oar
hasty crag
#

Please see the Doc above