#napolean-solo_api

1 messages · Page 1 of 1 (latest)

stuck streamBOT
#

đź‘‹ Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1398220990999302244

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

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.

keen leaf
#

hi there!

woeful shore
#

Hi

keen leaf
#

How do I update currency of a customer during creation? I want the customer to have a certain currency.
you mean with the Stripe API?

woeful shore
#

Yes

keen leaf
#

you can't directly set the currency of the customer. instead it will be automatically set once you create an Invoice or Subscription for that customer.

#
  1. when creating invoice in India I get error saying customer name and address is required. How do I pass in these values? During checkout it doesn’t update the customer?
    can you share a Request ID (req_xxx) witht that error?
woeful shore
#

But it’s choosing the wrong currency

keen leaf
#

But it’s choosing the wrong currency
can you share more details about this? like a concrete example?

woeful shore
#

Like when I create a user it’s automatically choosing usd as the currency even though I have set country as India

keen leaf
#

can you share a concrete example of this? like a specific request that failed?

woeful shore
#

Nothing failed it’s just by default it is choosing usd as currency

#

So I want it to change the currency to INR

#

To be clear, I want Indian customers to use INR currency

keen leaf
#

Nothing failed it’s just by default it is choosing usd as currency
how do you know that?

#

and can you share the Customer ID?

woeful shore
#

cus_SgQ4Q2d27KfKFo

keen leaf
#

that customer has a open invoice in USD, so the currency for that customer is USD as expected.

#

the fix is to void that invoice

woeful shore
#

No, the invoice is USD cause the customer currency is set to USD

#

By default it is creating the invoice as USD and that’s the issue

#

I want to update the customer’s currency to INR so that invoices are created in INR

keen leaf
#

yep: void all the existing open invoices, and then create a new invoice while setting the currency on the invoice itself

woeful shore
#

That’s the reason I reached out as I am unable to find a way to change or add the currency

#

But the invoice is created automatically

#

The user has a subscription created

#

So that sub is creating invoice in USD

#

Okay looks like I found the issue

keen leaf
#

yes that's expected, when you created the Subscription you set the price in USD.

woeful shore
#

Yep

#

Got it

#

Yep so coming to the second issue

#

req_wSDORjW4YsYYes

#

This is the request ID

#

the invoice needs name and address and from where should I set it

keen leaf
#

on the Customer object itself

woeful shore
#

Is it not updated during checkout sessions?

#

Like I am asking customers to add a billing address but for some reason it’s not updating

#

So is it possible to update the customers address during checkout?

keen leaf
woeful shore
#

Alright