#dman4224

1 messages · Page 1 of 1 (latest)

silk orioleBOT
broken shard
#

Are you using those separate card elements in your integration? (Rather than say the Payment Element)

dark cipher
#

Yes

broken shard
#

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?

dark cipher
#

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);

broken shard
#

Oh gotcha, you need to do that with Stripe.js in your client side

#

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