#chooke-elements
1 messages · Page 1 of 1 (latest)
this is the design we trying to achieve , we currently not using paymentSheet , only cardForm , if there is an alternative way to achieve this , and confirm a setupIntent , then that would be awesome
hmm, i think there're a lot of limitations to what can be done for iOS on cardForm at the moment : All styles except backgroundColor, cursorColor, borderColor, and borderRadius are Android only : https://github.com/stripe/stripe-react-native/blob/master/src/components/CardForm.tsx#L170
can we achieve this with paymentSheet instead, knowing that we are developing on ipad
payment sheet's UI is different, you can try it out and take a look if it suits your needs - https://stripe.com/docs/payments/save-and-reuse?platform=react-native&ui=payment-sheet#react-native-customization
i will try that , one last question , so if we build our own custom fields , how can we still confirm the setupIntent ?
so if we build all the fields and did all the validations , can we still confirm the setupIntent ?
umm, that's really not recommended. If you collect the raw credit card numbers in your custom form and then use the Stripe API directly to tokenize the cards. We actively discourage you from doing this because by handling raw card numbers directly you become subject to the full PCI compliance standards. In your case this means you’d have to submit a SAQ D form annually to prove that you are PCI compliant — see https://stripe.com/docs/security/guide#validating-pci-compliance under "API Direct" as this is what your integration would be classified as. It’s a 40 page form and trust me, not a headache you want to be dealing with.
so the only way to go about this is either use CardFrom or PaymentSheet right 😅
pretty much yep