#Elena - Payment Sheet
1 messages ยท Page 1 of 1 (latest)
cuz the values wont be used, so it kinda waste. Extra input for user to type
would be nice if the useStripe() hook accepted a prop called ```js
hidePostalCode: true
or something
I'm not seeing a way to disable it. The values are used by Stripe though, so they're not wasted.
wut are they? I have another question. Is is possible to add locale to it?
You're using React Native, right?
yes
All of the configuration options for the Payment Sheet in React Native are documented here: https://stripe.dev/stripe-react-native/api-reference/modules/PaymentSheet.html
haha i dont understand the docs ๐ how can i be so noob
i dont understand "type aliases" and stuff, im a foreigner
What are you trying to do exactly? You asked about adding a locale... what do you mean? What's your goal?
many libraries have a prop / option, where u can add locale
The Payment Sheet is automatically localized based on the country set on the device.
If you want to set the locale yourself you need to set your app's bundle localizations as described in this thread: https://github.com/stripe/stripe-react-native/issues/243
wierd, i use my own phone and not simulator. Let me check what language / country my phone is on
nope i dont have US or UK or anything on my phone
What phone are you using?
my own personal phone iphone 11 pro max
Have you specified which languages your app supports? From the GitHub issue linked above:
Do note that on iOS you need to specify which languages your app supports: https://help.apple.com/xcode/mac/current/#/devafa3a605f on Android that isn't required.
Click the + there.
would be nice if u could add all languages really, why not ๐
let me try adding the language
You may also need to do the plist modifications mentioned here: https://github.com/stripe/stripe-react-native/issues/243#issuecomment-860081339
why does it say "0 files localized"
let me see
@novel bane I thought that first thing in xcode does that
only not programatically
I dunno, people said they did it via the UI and it didn't work, but editing the plist did.