#blinkdaffer
1 messages · Page 1 of 1 (latest)
Correct - once the setup intent is successfully confirmed it'll be automatically attached to the customer associated with the intent
ty
its says i cannot confirm this setupintent as its missing payment method
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?
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
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?
Your tokenId must be empty because that Setup Intent has never had a payment_method