#rstupek-pmme-country
1 messages · Page 1 of 1 (latest)
HI 👋
Stripe looks at the country associated with the IP address to determine things like if a specific payment method is viable for a purchase.
ok so no need to provide it per the example in the docs
Which example are you referring to?
Ah, okay in that case the messaging is intended to notify the customer if they are not in a supported country. Stripe will just non show the Payment Method but it would be up to you to notify the customer of why
not sure I understand... if I don't set the country, stripe will determine their country? or do I need to figure out their country?
I'm sorry, I was thinking about the Payment Element. The Method Messaging element does require you to provide the country code to effectively message the end customer
their country code right?
Correct. Step 3 in the Create and Mount section here: https://stripe.com/docs/payments/payment-method-messaging#create-and-mount-the-payment-method-messaging-element
ok any advice on how I would determine the shoppers country?
You could collect it using the Address Element: https://stripe.com/docs/elements/address-element
it sort of defeats the purpose of rendering it since I'd rather not force a shopper to provide an address simply to display a product with the pay over time messaging?
There are services you can use to retrieve the address from the IP of the request
rstupek-pmme-country
ok that makes it a much bigger task