#WEIRDLEMON-ReactNative

1 messages · Page 1 of 1 (latest)

grave adder
#

Fetching and showing existing cards is a feature in client, and selecting off-session payment method for payments in server, that you mean?

hasty canyon
#

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

grave adder
#

Yes that's PaymentSheet example. I believe PaymentSheet already handle displaying the current cards for this specific Customer

#

a few secs

hasty canyon
#

Sure!!

#

Any demo that i can refer?

grave adder
#

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

hasty canyon
#

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??

grave adder
#

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

#

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

hasty canyon
#

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?

grave adder
#

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

hasty canyon
#

Can you share the code somehow?

#

A fiddle or something?

grave adder