Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option of Removing Country in CardFormField or Disable Selection or List Alteration #628

Closed
doshikh opened this issue Mar 11, 2022 · 8 comments
Assignees
Labels
blocked This issue is blocked by an external dependency issue enhancement New feature or request

Comments

@doshikh
Copy link

doshikh commented Mar 11, 2022

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.

Screenshot 2022-03-11 at 5 41 56 PM

Screenshot 2022-03-11 at 5 42 40 PM

@doshikh doshikh added the needs triage Needs triage label Mar 11, 2022
@remonh87
Copy link
Member

remonh87 commented Mar 14, 2022

We need to wait when Stripe fixes country behavior in their sdk. See: stripe/stripe-react-native#695. and stripe/stripe-react-native#577

@remonh87 remonh87 added enhancement New feature or request blocked This issue is blocked by an external dependency issue and removed needs triage Needs triage labels Mar 14, 2022
@memishood
Copy link

same problem here..

@jamesdixon
Copy link

@remonh87 it seems they now allow for the country to be overridden on Android: stripe/stripe-react-native#974

@komailabbas12
Copy link

@jamesdixon


 if (initSheet.error) return Alert.alert(initSheet.error.message);
    const presentSheet = await stripe.presentPaymentSheet({
      clientSecret,
    });

how you set the default country?

@remonh87 remonh87 self-assigned this Mar 13, 2023
@remonh87
Copy link
Member

@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

@komailabbas12
Copy link

@remonh87

const initSheet = await stripe.initPaymentSheet({
     paymentIntentClientSecret: clientSecret,
     merchantDisplayName: paymentDetails?.senderUser?.fullname,
     defaultBillingDetails:{
       address :{
       country: 'GB'
       }}
    
   });

this works on android side Thank you

@udayakr
Copy link

udayakr commented Aug 29, 2023

Is there an option to restrict the country list to USA and Canada from stripe dashboard ?

@remonh87
Copy link
Member

Default countries is supplied the option to disable is duplicate of #320 so will close this is one now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked This issue is blocked by an external dependency issue enhancement New feature or request
Projects
Status: Stripe RN
Development

No branches or pull requests

6 participants