#alexzada-Card Elements

1 messages ยท Page 1 of 1 (latest)

unique breach
#

๐Ÿ‘‹ happy to help

earnest falcon
wind lotus
#

do you mean you want a multi-line form like in the second screenshot?

earnest falcon
wind lotus
earnest falcon
# wind lotus well the easiest way is to use the PaymentSheet since that is mutiline by defaul...

I even implemented this form, but as we chose to use the synchronous form with completion on the server, I only used CardField because I don't know how to use PaymentSheet just to get the card details, and I also had another problem regarding the component's language, as I am in Brazil, I needed it to be in Portuguese, but in all the devices I tested, it was in English (PaymentSheet)

wind lotus
#

it definitely localises so you did something wrong there

earnest falcon
earnest falcon
wind lotus
#

usually it's because your own app is not localised

#

like in iOS your own app has to be have translations for the given language in order for it to work in the SDK(we have our own translations but they're only used when the app using the SDK is using that language)

earnest falcon
earnest falcon
#

@wind lotus one more question, where can i see how to style the CardForm?

wind lotus
#

it takes a React Native ViewStyle object as the style parameter

earnest falcon
wind lotus
#

not sure , I haven't used this component myself

earnest falcon
#

๐Ÿ˜–

wind lotus
#

I can try to look but it's too busy right now, I'd suggest experimenting with it and looking at the examples