#Gary4091 - CVC Recollection

1 messages ยท Page 1 of 1 (latest)

winged ginkgo
#

Hello! Let me take a look...

hollow raft
#

ok

winged ginkgo
#

Have you tried specifying the token inside payment_method_options.card.cvc_token?

#

When calling stripe.confirmCardPayment?

hollow raft
#

No, let me take a look. Thank you. I will get back

winged ginkgo
#

Like this:

stripe.confirmCardPayment(clientSecret, {
  payment_method_options: {
    card: {
      cvc_token: cvcToken,
    ...
hollow raft
#

Wow, interesting, checking now

winged ginkgo
#

I don't know for certain if that will work, but I think it will? ๐Ÿ™‚

hollow raft
#

when we do this we get the following error message from Stripe.JS: "Received unknown parameter: payment_method_options[card][cvc_token]"

#

Seems it does not work ๐Ÿ™‚

winged ginkgo
#

Ah, dang. I guess it really isn't supported then. Let me check on something...

#

It looks like we only support the cvctok_ when confirming server-side. For client-side confirmation you need to use the CVC Element and reference it when calling stripe.confirmCardPayment.

hollow raft
#

So there is no way to implement a logic, when we re-collect CVC one one page, and confirm card payment on the next page? (This is our current checkout setup and we are trying to integrate stripe in this setup)

#

?

winged ginkgo
#

I don't believe there is, no. You would either need to move the CVC Element to the same page where you call stripe.confirmCardPayment (recommended) or confirm the payment server-side (not recommended).

#

My guess is we implemented it this way because CVC tokens are quite short lived, so we didn't want people entering a CVC on one page, then waiting long enough for the CVC to expire, then confirming the payment.