#SenorKarlos-Georestrict

1 messages ยท Page 1 of 1 (latest)

torn aurora
#

Hi there, do you mean that customers can purchase the products if they are from certain locations ?

glossy sinew
#

Exactly, I'm a Canadian service provider and don't need/want the hassle of accounting for foreign transactions without sales tax (plus the product is only 'legitimately' used locally)

#

so I want them all to be Canadians with Canadian billing addresses. I was going to try and cheese it with shipping address restriction on checkout sessions, but I a) don't ship anything and b) that doesn't help the Cx portal ๐Ÿ˜‚

torn aurora
#

OK, so you don't to accept a payment if the credit card is not issued in Canada? or just based on the billing address?

glossy sinew
#

Billing Address is my main concern, if they're a local with a US/other card I'll take their money from it lol

torn aurora
#

OK, what integration are you using now? Checkout, PaymentElements or CardElement?

glossy sinew
#

I'm working on a new system based in nodeJS, using the CX portal for management and the Stripe hosted Checkout for new subscriptions/one-time access payments

torn aurora
#

OK, so you are using Checkout

glossy sinew
#

as of tomorrow (or whenever I finish debugging) yes lol

#

I was using the legacy checkout that just collects a card token, but decided to learn to code and get with the times

#

hand-me down program on it's last legs ๐Ÿ˜‚

torn aurora
#

There's a param called shipping_address_collection https://stripe.com/docs/api/checkout/sessions/create?lang=node#create_checkout_session-shipping_address_collection, and you can specify an array of country codes representing which countries Checkout should provide as options for shipping locations.

glossy sinew
#

When I realized I had to use Stripe Tax, I was greeted with this and said "that needs to stop now" lol

torn aurora
#

So if I set the allowed_countries to ['US, 'CA'], only these two countries will be displayed on the Checkout page

glossy sinew
#

my plan was to ez cheese it, but I want to avoid complaints and not deal with sneaky updaters

torn aurora
#

So I'd suggest you to detect the customer location in your webpage, and don't allow your customer to visit the checkout page if they are not from Canada.

glossy sinew
#

yeah I know... I discussed this a little with someone here and they mentioned Rules, which is what i started the Q with ๐Ÿ˜›

I also just said I'm learning to code as I go here, half of this I am shocked even works ๐Ÿ˜… Not sure about how to do somethin like that at all, unless it's a CloudFlare setting ๐Ÿ˜‚

torn aurora
#

Are you talking about Radar Rules?

glossy sinew
#

only Rules I could find

torn aurora
#

You can use the Radar to to block a transaction based on the card country and/or IP country.

#

But my personal opinion is that the user experience may not be smooth, your overseas customers will be surprised to find out the payment is blocked and will contact you about this problem.

glossy sinew
#

and i set those rules in the Dashboard? which is where I think I stopped because it looked like a paid product and I wasn't sure how much etc

#

Yeah I guess that makes sense... get all the way to checkout and then error error error

#

I guess I have more learning to do about website administration ๐Ÿ˜‚ I assume most website geo-restrictions can be dodged by VPN's though eh

#

so I MIGHT want both regardless, but ๐Ÿ˜ฌ this journey is becoming an adventure LOL

torn aurora
glossy sinew
#

thanks much! I'll research some more

#

well that whole page is being very informative ๐Ÿ˜‚ extra thanks. I don't think I want international cards either ๐Ÿ˜… and the radar rules are only 3c because I have standard pricing I think?

torn aurora
glossy sinew
#

hopefully one day ๐Ÿ˜… ๐Ÿ˜„