#sunnylbk

1 messages ยท Page 1 of 1 (latest)

hot havenBOT
narrow ingot
#

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.

paper dew
#

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?

narrow ingot
#

Based on your own logic on your end, yep.

#

Actually, wait...

#

Let me check something.

paper dew
#

Ok

narrow ingot
paper dew
#

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

narrow ingot
paper dew
#

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

narrow ingot
#

Yep.

#

Give it a try in test mode and see if it will work for your use case.

paper dew
#

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

narrow ingot
#

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?

paper dew
#

The base country is in US

#

Yes, it shows up on clicking Subscribe

narrow ingot
#

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?

hot havenBOT
narrow ingot
#

Ah, no, INR is listed as a valid presentment currency for US accounts, so there must be something else going on.

paper dew
#

This is the pricing table id, prctbl_1NJ17cFDHhS1SIernPtLhIvF

desert tinsel
#

๐Ÿ‘‹ 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?

paper dew
#

Thanks Karbi, here is the url, https://checkout.stripe.com/c/pay/prctbl_1NJ17cFDHhS1SIernPtLhIvF/prctblitm_O5BxUGsPaPw7Ag#fidkdWxOYHwnPyd1blpxYHZxWjA0SFJHfGtDQU1tVjRWTGB3T3A9ZlBvc05WV0s1Yms0Yl9BXGRPYlZ8Qk9KPUZjcktPTVJna04wdnNvdmlgMjU3NTJqdWhoQDZzY2dNSzVgVXBhS25NdlVgNTV9VjVPbTxfdCcpJ2ZpbGBrcVdgY2B3YGtmYExhJz8nMGA3PDxkNTQoPD0zNCgxMWEyKDw9NDUoNjU0YWEyZDBhYzE1JyknZnB2cWpoYHdAaGRsaSc%2FJ2d3cGZgK3JkfGtgRWlgZGJwYCtmamgnKSdhYGNkcGlxVHBka3FscXwnP2twaWl4JSUl

desert tinsel
#

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

paper dew
#

I see, let me try that, a moment

#

That worked, thanks!

desert tinsel
#

๐Ÿ‘ awesome! glad to hear it!

paper dew
#

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?

desert tinsel
paper dew
#

Above API isn't taking a customer id

#

I am looking to retrieve all subscriptions a customer paid for

desert tinsel
#

That API should be taking in a customer ID in the set of params

paper dew
#

Ah, I see the customer parameter

#

Yes, sorry

desert tinsel
#

yup!

paper dew
#

cool, I am able to retrieve now

#

Thanks a lot!