#dman4224
1 messages · Page 1 of 1 (latest)
Are you using those separate card elements in your integration? (Rather than say the Payment Element)
Yes
You're not meant to have access to the raw details entered in those field, but rather provide references to the elements when confirming
Can you share a snippet showing what you're trying to do and explain whats not happening like you expect?
I create a paymentIntent like this, but I am not sure how to confirm it.
const intentParams = {
amount: price,
currency: 'usd',
payment_method_types: ['card'],
description: XYZ,
statement_descriptor: 'XYZ',
statement_descriptor_suffix: 'XYZ',
};
const paymentIntent = await stripe.paymentIntents.create(intentParams);
Oh gotcha, you need to do that with Stripe.js in your client side
Our current guide (using payment element) shows that step here:
https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#web-submit-payment
WIth the "split card" elements it looks a little bit different:
You provide a reference to your cardNumberElement and Stripe.js finds the other two automatically