#nash - setup intents
1 messages · Page 1 of 1 (latest)
What are you trying to do, exactly?
Oh, i think i understand
You're getting an API error when you try to set the customer ?
If the Setup Intent wasn't linked to a customer at first, you can instead attach the resulting payment method to a customer afterward
yup
Using ruby <Stripe::InvalidRequestError: (Status 400) (Request req_1DKfkYO3oiXJ0a) You cannot update this SetupIntent because it has already succeeded.>
If the Setup Intent wasn't linked to a customer at first, you can instead attach the resulting payment method to a customer afterward
That's what I'm trying to do. Basically update the successful intent with the customer. But getting error above.
No it's a bit different
You'd take the resulting payment method:
https://stripe.com/docs/api/setup_intents/object#setup_intent_object-payment_method
and attach it to the customer:
https://stripe.com/docs/api/payment_methods/attach
NP! Let me know if you have any trouble with that
❤️ stripe.