Option of Removing Country in CardFormField or Disable Selection or List Alteration
I want to restrict country list or hide Country drop down same as enablePostalCode: false , option from CardFormField
But there is no option in plugin for that Problem : When ever user changed country postcode field appear again If it's there please let me know
I am using version 1.3.0 of flutter_stripe in my flutter project
Please refer screenshots for check.
We need to wait when Stripe fixes country behavior in their sdk. See: https://github.com/stripe/stripe-react-native/issues/695. and https://github.com/stripe/stripe-react-native/issues/577
same problem here..
@remonh87 it seems they now allow for the country to be overridden on Android: https://github.com/stripe/stripe-react-native/pull/974
@jamesdixon
if (initSheet.error) return Alert.alert(initSheet.error.message);
const presentSheet = await stripe.presentPaymentSheet({
clientSecret,
});
how you set the default country?
@jamesdixon you can add the countryside to the card form on Android it is still not implemented for iOS.
@komailabbas12 this ticket is related to the card form and not the payment sheet. The payment sheet uses the phones locale but you can change it by providing billingDetails
@remonh87
const initSheet = await stripe.initPaymentSheet({
paymentIntentClientSecret: clientSecret,
merchantDisplayName: paymentDetails?.senderUser?.fullname,
defaultBillingDetails:{
address :{
country: 'GB'
}}
});
this works on android side Thank you
Is there an option to restrict the country list to USA and Canada from stripe dashboard ?
Default countries is supplied the option to disable is duplicate of #320 so will close this is one now