#sandip.b.fst

1 messages · Page 1 of 1 (latest)

cold umbraBOT
runic meadow
#

You should be passing the customer parameter when you create the Setup Intent. That will handle the attachment when you confirm the Setup Intent

livid knot
#

Yes I'm using stripe.js confirmSetup but after confirm in backend I'm attaching card to customer as well as setting it default

runic meadow
#

You can't call the /attach endpoint. So instead pass the customer parameter when you create the Setup Intent

#

And it'll do the same thing

livid knot
#

Here is setup intent create log:

runic meadow
#

Ok, you're already passing the customer parameter – great

#

In that case you can jsut remove step 4 from your flow where you attach the PM and just set it as default