#zysora
1 messages · Page 1 of 1 (latest)
Stripe JS will tokenize it with our server. It's a encapsuled process and help you not exposed to PCI Compliance
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
yeah just wanted to confirm my understanding
So despite the onCardChange callback existing, the client will NOT have access to the full card details
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?
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
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
Yep
yep, its very useful