#sreekanthmk
1 messages · Page 1 of 1 (latest)
Hi there!
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
Yes I was checking
Okay
the reqId you shared returns 200 status
wait a min pls
Please check this one
req_NJ8dl5dfK7RdoL
Its 200 status in log. But it shows like this
FYI I am using the indian test card
Yes the related error requestId is this one:
https://dashboard.stripe.com/test/logs/req_90q74ULwENZNUV
The issue is that you are using an indian Card for an INR transaction (as the billing address is a US)
Did you tried to set India as billing address ?
No. Its not the issue. I am using Indian card for USD transaction. It works for all other countries except India.
Did you tried to set India as billing address ?
=> Yes that time I get a different error
What was the error ?
Non-INR transactions in India should have shipping/billing address outside India. More info here: https://stripe.com/docs/india-exports
As per this error, it should work if I give US address right?
Yes but using non Indian Cards
You can't use Indian Cards for international shipping address
So how do I make this available for indian customers?
Please see if it helps
Please give me couple of minutes in order to check something
Sure
I see that the Price (price_1LRxu3SGtKVHB2p0dcQ91mSm) is configured only for USD, you probably need to add Indian rupee currency for it so that in the Checkout Session will display it
In other worlds, you need to present local currencies to the customer, you can refer to this guide:
https://stripe.com/docs/payments/checkout/present-local-currencies
You can test this later by using customer_email: 'test+location_IN@example.com' in order to simulate the Checkout Session Display in India
Or you can use that beta feature you shared above 👆by registering your account using the form
I signed up for the beta feature already few days back. Got this message -> Signed up successfully!
Thank you! We'll be in touch soon.
How to use the beta feature now?
Basically we dont want to create separate price IDs. Thats our requirement
You won't create a new priceId, for the same price object you'll add more currency options:
https://stripe.com/docs/api/prices/create#create_price-currency_options
The support will come back to you soon yeap!
In dashboard you have this option when creating new Price,
You can update existing Price Id using the API:
https://stripe.com/docs/api/prices/update#update_price-currency_options
It has to be done programatically?
I cant edit it in the dashboard?
Also, will it automatically convert the USD amount to INR for indian cards?
I mean based on the conversion rate of the day.
hi.there?
Sorry for my late reply
yes
AFAIK, no you need to use API in order to add more currencies for an existing price
When I add a new currency option in INR, do I have to mention the unit amount?
No, when using currency_options you set a fixed rate, if you need an automatic conversion then you need to be registred for the beta (as you did earlier)
So no other way to get the automatic conversion as of now?
Nope
In my website I want to show the subscription price in USD. when he reaches the stripe page, it should be shown in INR (based on the particular day's conversion rate)
Would you please cross check it once? Because I have seen applications that accepts Indian cards for payment in USD. eg: Laracasts.com
Hi! I'm taking over this thread.
sure
Hi! I'm taking over this thread.
So you want to dynamically convert the USD price into INR, and then create a Checkout Session with INR?
Exactly
When you create a Checkout Session, you can either pass a price ID, or dynamically set the price in ine_items.price_data https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data
So you could compute on your end the conversion between USD and INR, and then create the Checkout Session in INR with the correct amount.
Will it work with subscriptions?
Yes
Just imagine my product is 50USD. today a user subscribes it for 4104 INR as per today's conversion rate. When the subscription renews automatically after 30 days, I dont want stripe to debit the same amount of 4104 from the user. It should be the INR corresponding to 50USD on that day.
WIll it work automatically with the solution you mentioned above?
No, once you set the amount for the subscription, it will be the same for recurring payments.
But changing the price of the subscription evert month doesn't look like a good idea for customers.
I think you should set the INR amount yourself once, maybe above the current exchange rate, and then keep it the same for all days and all customers.
Basically I want to deduct 50 dollars every month. I am converting it into INR since its an exceptional case for india
Any work around to achieve it without converting to INR?
My suggestion would be:
- convert $50 in INR, that about 4,102 today
- then round up that number to take into account that the exchange rate might change, so maybe 4,500 (that's completely up to you)
- and create all new subscriptions for 4,500 INR and that amount doesn't change.
I got your point. But is there any way to deduct 50 dollars every month? Because the subscription is 50usd per month and we dontwant to change it for indian customers.
But is there any way to deduct 50 dollars every month?
Well as mentioned in the error message you had before: "Non-INR transactions in India require a card issued outside India". So you can directly charge $50 per month only if the card is issued outside of India.
Yes that's possible. I am talking about the special case where user uses Indian card
I am talking about the special case where user uses Indian card
Then you have to use the INR currency.
Okay
I have subscribed for Automatically convert currencies (Beta) Any idea when I can start using it?
No idea unfortunately. You can try to ask support for more information about this: https://support.stripe.com/contact
Okay. Thanks.
One final question. If I want any help on this in future, any option to continue this chat? I think this thread gets archived in some time
Yes we archive threads after some time of inactivity. But feel free to start a new thread if this one is closed.