#sushbat-country
1 messages · Page 1 of 1 (latest)
is this about the PaymentElement component? let me check but I don't think that can be customised.
yeah you can't change the list of countries. One option might be to disable country collection entirely (https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-fields-billingDetails-address-country) and manage it yourself. What's the use case exactly?
yes payment-element
we have compliance issues, so want to allow payments only from certain countries.. infact allow payments from most of the countries except 2 or 3
there's not really a way to customise that input, but really the solution I would use is to use our Radar product to set up a block rule to block payments from those countries as it's better than only changing the frontend.
ok
however the country value doesn't need to match card country, right? because I was able to select a US test card and make payment by selecting india
it doesn't have to match, no, it's the customer's billing address
and it's possible they for example live in Canada and that's where their billing address is, but they are using a card issued from a US bank
we ask for the country so we can localise the form correctly(i.e. ask for a postal code in the right format)
got it
one more question any way we can send reciept_email in test mode. . I have given in paymentIntent object but don't see any emails
you can use the dashboard to view what the receipts would look like, but we don't send the emails themselves automatically in test mode
there's information on that in https://stripe.com/docs/receipts#receipts-in-test-mode
sure thanks for the info