#sunnylbk
1 messages ยท Page 1 of 1 (latest)
Hello! This is something you would need to do on your end. You can detect the location of the customer on your end and display the Pricing Table with the currency you want for that region.
Got it. So, if we have, say, 2 currencies, USD, GBP, we need to create 2 different pricing tables and show based on the parameter. Is this right?
Based on your own logic on your end, yep.
Actually, wait...
Let me check something.
Ok
Ah, I didn't realize this had been released, but we have some support built in for this: https://stripe.com/docs/payments/checkout/pricing-table#price-localization
Cool, we have been using embedded pricing tables. But, we have different pricing based on geographies, like they are not just currency converted values. For this, earlier approach would work, correct?
for example, price is 10 USD for US and 8 GBP for UK
Probably. You can do it in Stripe, I think, using Multi-currency Prices with custom values for the different currencies, but if you're comfortable handling that logic on your end it might be a better option. https://stripe.com/docs/payments/checkout/present-local-currencies?platform=multi-currency-prices
I see. It can be configured it within Stripe itself per region and we can render the appropriate one by adding currency label towards the end of the email
Thanks, will do.
I have another query regarding, pricing tables. I created 2 procing tables one with USD and other with INR. I am able to click on Subscribe for USD one and pay with test card. When I do the same for INR one, I see an error message on the screen, though no error occurs in the console or in the network tab
INR Subscriptions have a lot of restrictions and requirements due to regulations and laws in that country. What country is the Stripe account in where you're creating the Pricing Table?
Also, to clarify, does this error show up when you click on the subscribe button or after you provide the test card details?
I don't think you're allowed to take INR payments with a US account, but let me see if I can confirm that...
In the meantime, can you give me the ID of the Pricing Table or the ID of one of the Checkout Sessions it generated so I can investigate further?
Ah, no, INR is listed as a valid presentment currency for US accounts, so there must be something else going on.
This is the pricing table id, prctbl_1NJ17cFDHhS1SIernPtLhIvF
๐ rubeus had to head out, but I'm taking a look now
Can you also share the URL you're directed to that shows the "Something went wrong" page?
Thanks Karbi, here is the url, https://checkout.stripe.com/c/pay/prctbl_1NJ17cFDHhS1SIernPtLhIvF/prctblitm_O5BxUGsPaPw7Ag#fidkdWxOYHwnPyd1blpxYHZxWjA0SFJHfGtDQU1tVjRWTGB3T3A9ZlBvc05WV0s1Yms0Yl9BXGRPYlZ8Qk9KPUZjcktPTVJna04wdnNvdmlgMjU3NTJqdWhoQDZzY2dNSzVgVXBhS25NdlVgNTV9VjVPbTxfdCcpJ2ZpbGBrcVdgY2B3YGtmYExhJz8nMGA3PDxkNTQoPD0zNCgxMWEyKDw9NDUoNjU0YWEyZDBhYzE1JyknZnB2cWpoYHdAaGRsaSc%2FJ2d3cGZgK3JkfGtgRWlgZGJwYCtmamgnKSdhYGNkcGlxVHBka3FscXwnP2twaWl4JSUl
perfect! so it looks like you're getting this error because you have a US-based account, so the minimum amount you can charge is based on USD (so you'd need to charge an amount that would convert to >$0.50 USD) - see our list of minimums here (https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts)
The INR amount you have right now is 10.00 INR, which only converts to $0.12
So if you set a higher minimum quantity, like quantity 5 that should defintiely bring you above the minimum
๐ awesome! glad to hear it!
As a follow-up to above, on subscribing with test card details, I see a created customer and associated subscription in the dashboard. But, when I am using java SDK to retrieve subscriptions, it shows as null
This is the code I have, var requestOptions = new RequestOptions.RequestOptionsBuilder() .setApiKey("<api_key>").build(); var customer = Customer.retrieve("<customer_id>", requestOptions); log.infov("customer: {0}", customer.getSubscriptions());
But, I see a subscription in the dashboard. Am I using the correct API?
If you're retrieving Subscription you should be using the Subscriptions API, not the Customer one - https://stripe.com/docs/api/subscriptions/list?lang=java#list_subscriptions-customer
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Above API isn't taking a customer id
I am looking to retrieve all subscriptions a customer paid for
That API should be taking in a customer ID in the set of params
yup!