Retrieve client_secret with stripe.confirmCardSetup

There is no field to retrieve the client_secret from the setupIntent or paymentIntent APIs, when using stripe.confirmCardSetup or stripe.confirmCardPayment client side.

It that something you’d need to fix or else what would be the exact syntax in the code for matching the Stripe doc below? This does not work and messes up my whole dynamic event flow function:

stripeCard.confirmSetup(’{My_ServerconnectID.data.My_createSetupIntentAPI.client_secret}’

Stripe JS:

stripe
  .confirmCardSetup('{SETUP_INTENT_CLIENT_SECRET}', {
    payment_method: {
      card: cardElement,
      billing_details: {
        name: 'Jenny Rosen',
      },
    },
  })

Pls advise your suggestion @patrick @Teodor

Community Page
Last updated: