#ovidiu-Payment

1 messages · Page 1 of 1 (latest)

wary kernel
#

👋 happy to help

#

are you using the PaymentSheet?

fringe dragon
#

Hey, thanks

#

No, this use case is for a flow where we're trying to confirm payment with a card that's already been set up. It would be nice if we could get our users to confirm their CVC

#

On web, payment_method_options.card.cvc can be set and we can use StripeCardCvcElement to securely get the CVC

#

const cvc: StripeCardCvcElement | null = elements.getElement(CardCvcElement)

wary kernel
#

that's not how confirmPayment works though

fringe dragon
#

Which part of my flow is wrong? At the moment we pass the clientSecret and { paymentMethodId, type: 'Card' }

wary kernel
fringe dragon
#

Understood, and how do I collect the CVC?

wary kernel
#

using the StripeCardCvcElement

#

and passing FieldName as "Cvc"

fringe dragon
#

Thanks!

wary kernel
#

let me know if you need any more help

fringe dragon
#

Is CardFieldInput not a component?

#

TS2604: JSX element type 'CardFieldInput' does not have any construct or call signatures. on the latest version

raw basin
#

Indeed, there's no component just for CVC collection

fringe dragon
#

How do you suggest we recollect a CVC in that case, then?

raw basin
#

Seems we recommend just collecting that in a regular field

#

It's not particularly sensitive when it's collected without any other card data (number, etc) in this case