#zysora

1 messages · Page 1 of 1 (latest)

glossy capeBOT
hollow canopy
#

Stripe JS will tokenize it with our server. It's a encapsuled process and help you not exposed to PCI Compliance

sonic zenith
#

Heya, thanks for helping out

i am working with flutter_stripe but I think its a wrapper around the react native SDK so the question should be relevant

#

then in here

  // Fetch the intent client secret from the backend
    const clientSecret = await fetchPaymentIntentClientSecret();

    // Confirm the payment with the card details
    const {paymentIntent, error} = await confirmPayment(clientSecret, {
      paymentMethodType: 'Card',
      paymentMethodData: {
        billingDetails,
      },
    });

We just do confirmPayment('Secret from server') then specify the payment method type to be card.

it will automatically get the card details from the existing CardField?

#

We dont need to pass the card details over?

hollow canopy
#

Yes!

#

That's how it works. Basically it's a box

sonic zenith
#

ah thank you very much, since flutter_stripe is a wrapper for it im gonna assume the method is the same

#

So the reason for onCardChange is to verify if card details are complete/non sensitive information and there is no need to concern myself on handling any card details at all

hollow canopy
#

Yes correct

#

It's the whole point of the SDK, to free you from the PCI compliant

sonic zenith
#

ALso to confirm:

confirmPayment() <- calling this will basically do everything for me, I just need to specify the payment method type and any relevant data

hollow canopy
#

Yep

sonic zenith
#

yep, its very useful