#kris-pricingtable-localization
1 messages · Page 1 of 1 (latest)
To add more context, I have three products. Two of them have 3 currency prices (US dollar, £ and INR) and the third is enterprise with no prices and just a link to action to contact us.
Hello! Give me a few minutes to finish helping out some other folks and I'll take a closer look
kris-pricingtable-localization
@echo kiln can you give me an example Checkout Session URL so that I can look at it?
also what do you expect to happen with the IN suffix?
The IN prefix is for India, so I was expecting the price in Rupees
did you configure your PRice to have INR as a currency option? Or something else?
Yes, we have $, £ and Indian rupees
Okay, can you share a really concrete example so that I can help you?
Here is the test case we were looking at
<script async src="https://js.stripe.com/v3/pricing-table.js"></script>
<stripe-pricing-table pricing-table-id="prctbl_1Ng6KMBCV4yEKFvO52FfyCcv" publishable-key="pk_test_51Ncpo5BCV4yEKFvOoXnELFNOAovBXdgWzCTk09EcsxXCJ7B0H3j2p5jWJBskDTxC6o3R1UgCTdGmJjYg3bX6F99200m0xIPaKB" client-reference-id="a0e31d26-02c8-429c-b704-4e93fc517483" customer-email="pavan.mollagavelli+location_IN@jeevi.ai"></stripe-pricing-table>
@KrisD can you give me an example Checkout Session URL so that I can look at it?
I can't do much with that kind of html
I'm sorry, can you share what I need instead?
When you use the PricingTable, you get to Checkout. That's the URL I need please
That'sentirely unrelated
that is solely about the CustomerPortal for managing your Susbcriptions
Pricing table gives embeddable code, not a URL, right?
Yeah I think there's something fundamental that is misunderstood here
the PricingTable is a product to easily show pricing options and then redirect to Checkout for payment
Yes, it gives me that as I am in UK
no you explicitly pre-filled the email to UK
Strange, looks like it is automatically changing the email to "UK".
nothing is automatic, this is your code doing it
The screenshot clearly shows I used "_IN" email, then in the rendered page, I press Subscribe and then I see "_UK" in the email.
Sure but that's clearly not what is happening, and that wouldn't come from us
that one lost the email entirely
My problem is with that initial page which always shows the $ no matter what. Once I press the subscribe, then currency looks good.
Customers might not like to pay in foreign currency, so we are thinking putting a banner above, press subscribe to see in your local currency but that looks odd/
I understand that part but the problem is taht we're not yet aligned on whether you are setting the right email in the first place
So that's what we need to debug first
This is the right format for the email, isn't it? pavan.mollagavelli+location_IN@jeevi.ai
yes, that's not really the problem. Sorry we're a bit all over the place. You started with "I hardcode IN but get UK" then "I hardcode IN but get null"
let's ignore PricingTable for a sec and get a Checkout Session that properly has the IN pre-filled email
Sorry for all the confusion. I will worry about the Checkout Session later because my PricingTable itself is wrongly displayed.
I started without cutomer-email and got wrong PricingTable and someone in this forum mentioned to use customer-email in the above format to get correct PricingTable in local currency, but I am not getting that. So wondering what is wrong.
As per the docs "customer-email="pavan.mollagavelli+location_IN@jeevi.ai" should display the table in Indian currency, but it is not doing that. Infact that email format should force Stripe to display it Indian currency where ever I open the pricing table with that email argument. But Stripe seems to just ignore that customer-email format.
I will worry about the Checkout Session later
I recommend doing the opposite. Focus on Checkout first. Right now you seem to have a problem pre-filling and Checkout tells you instantly if you pre-filled the email properly
For context, while we chatted and I helped other users I went and did the most simplest example and it works fine for me
1/ Create two separate Products, each with one recurring Price in USD and an extra currency_options in INR and nothing else
2/ Create a PricingTable for those 2
3/ Load PricingTable with the pre-filled email for US -> USD, FR -> USD, IN -> INR
So it does work, if it doesn't for you it could be a variety of things. It could be some extra option on your PricingTable (it's complex with 4 separate Products/Prices). It could be the way you pre-fill.
We're just slowly eliminating potential issues
Thanks for the advice. I am experimenting different options without the customer-email. What I observed is if I check the option "Collect tax automatically" and US gets selected automatically (I can see this in the checkout preview Stripe shows on the right half of the page), then the pricing table is shown with $ no matter what. If I deselect that option while creating the PricingTable, then it shows £ for me in UK. But it still does not repect the customer-email.
ah let me try that
there are some options incompatible with currency_options because we don't have localized tax details for example
I tried locally and have still 2 Prices + automatic tax and it works fine for me
I assume it's because your Product/Price aren't configured properly for tax calculation. This is getting a bit far from the kind of things we help with here though
Thanks @solemn current I will try to experiment more and will see where I go with this.