#WEIRDLEMON-ReactNative
1 messages · Page 1 of 1 (latest)
Fetching and showing existing cards is a feature in client, and selecting off-session payment method for payments in server, that you mean?
Yeah
Even if i get seperate demos for both i.e. client and server, that'd be great
I'm having trouble saving and fetching cards information for a customer and figuring out which UI component will render these cards for selection
Been following the above guide
Yes that's PaymentSheet example. I believe PaymentSheet already handle displaying the current cards for this specific Customer
a few secs
Sorry my React Native just errored on my machine 🙂 Pardon me some time
I believe you can reproduce it in the Example folder inside React Native SDK
for example this file https://github.com/stripe/stripe-react-native/blob/master/example/src/screens/PaymentsUICompleteScreen.tsx
Thanks a lot for this!
Help me if I'm wrong with this but, can I use a different custom screen to add the card details for a customer using createPaymentMethod api?
Or does it need to be combined here with payment sheet somehow??
You should always use PaymentSheet
Doing collecting Card Information yourself would put you under the scope of PCI Compliance, and you will need to submit a lot of documents to either Stripe and your own PCI officer
More information here: https://stripe.com/docs/security/guide#validating-pci-compliance
If not PaymentSheet, you have the choice to use the Elements provided by the SDK, that's safe
but not definitely some UI by yourself
So a payment sheet UI to store card details, followed by a payment sheet Ui for checkout would be my best bet?
What would be the server side flow to get this done?
Creating a customer, attaching a card (server side) + paymentsheet (to send the captured details, client)
Fetching the cards information for the customer and checkout using one of the selected card in payment sheet (client)
Right?
PaymentSheet con conditionally display both Checkout and saved card detail
I wish to show you that screen, but my project on my machine just refused to complie
Displaying saved card on PaymentSheet on client, is another thing than fetching the saved card on the server and charge it without client