#zerosodium
1 messages · Page 1 of 1 (latest)
@agile ginkgo
Hello 👋
Correct, we have a step by step guide here
https://stripe.com/docs/payments/save-and-reuse
@agile ginkgo so when it says create a setupIntent with the customer id here https://stripe.com/docs/payments/save-and-reuse#:~:text=Creates a SetupIntent with the Customer ID.
that means I have to manually assign the setupintentid to the customer?
@agile ginkgo like I can't pass the customerID to the setupIntent object and have it be automatically assigned?
Are you asking about step 4?
The link you shared is broken and isn't taking me to the highlighted portion
I'm talking about step 3.
Step 3 just creates the customer object
I can't pass the customerID to the setupIntent object and have it be automatically assigned?
Not sure I fully understand, in Step 4 when you create a SetupIntent then you are passing a customer ID there
Which is set on the SetupIntent object
Right now am just creating the SetupIntent like so
const resp = await stripe.confirmSetup({
elements,
redirect: "if_required",
});
where would I pass the customerId here?