#blinkdaffer

1 messages · Page 1 of 1 (latest)

thorn kernelBOT
edgy dagger
#

Correct - once the setup intent is successfully confirmed it'll be automatically attached to the customer associated with the intent

opaque ember
#

ty

opaque ember
#

its says i cannot confirm this setupintent as its missing payment method

edgy dagger
#

Typically, if you were confirming the setup-intent cilent-side the payment method would be created at the same time - which docs/flow are you following?

opaque ember
#
  customerId: string,
  tokenId: string
) => {
  const setupIntent = await stripe.setupIntents.create({
    customer: customerId,
    payment_method: tokenId,
  });
  console.log('setupIntent', setupIntent);

  const confirmSetupIntent = await stripe.setupIntents.confirm(setupIntent.id, {
    payment_method: tokenId,
  });

  console.log('confirmSetupIntent', confirmSetupIntent);
};
#

can i not confirm the setup intent from BE

edgy dagger
#

You can confirm from your backend, it's just usually not what peopel start with

#

Do you have a setup Intent ID I can quickly take a look at so I can see what you're doing?

opaque ember
#

one sec

#

seti_1NnUj3K82A9Ni3Dix7PKfwyM

edgy dagger
#

Your tokenId must be empty because that Setup Intent has never had a payment_method