#Nelsonct7

1 messages · Page 1 of 1 (latest)

jaunty daggerBOT
pliant island
rich kite
#

so I need to make one more api call to back end and update the customer

#

const { error } = await stripe.confirmSetup({
return_url: 'http://localhost:3000',
payment_method_data: {
billing_details: {
name: cardHolder
}
}
}
});
is it possible to add any extra parameter so the customer get updated

pliant island
#

nope

rich kite
#

back end is the only option ?

pliant island
#

yep

rich kite
#

const setupIntent = await stripe.setupIntents.create({
// payment_method_types: ['bancontact', 'card', 'ideal','sofort'],
payment_method_types: ["card"],
customer: customerId,
});
ok, can I update the customer right after I create the setupIntent

#

will it take effect if the front end user didnt submit the payment details

pliant island
#

no that won't work

#

you have to update the customer after the SetupIntent succeeds.

rich kite
#

ok, thanks man