#uh oh

1 messages · Page 1 of 1 (latest)

sleek bobcatBOT
rare cosmos
#

Because if I use PaymentElement, the docs say I need to include the client secret in the options prop in Elements

formal hinge
rare cosmos
#

Hi! Yeah, but do I need to initialize it with the client secret here? like in this doc?

#

On Step 5, there is the client secret in the options props for <Elements>

formal hinge
#

Afaik you don't need to initialise it the same way, no.

rare cosmos
#

Thank you!!

#

If I wanted to use confirmCardSetup with a connect account

#

what is the format?

#
const result = await stripe.confirmCardSetup('{{CLIENT_SECRET}}', {
      payment_method: {
        card: elements.getElement(CardElement),
        billing_details: {
          name: 'Jenny Rosen',
        },
      }
    });```
dusky basin
#

Yep that looks right. Have you tried that code on your test page?

rare cosmos
#

Yes, but I would like to confirm it with a connected account

#

Can you keep track of setup intents on stripe dashboard?

dusky basin
rare cosmos
dusky basin
#

That is taken care of when initializing Stripe.js