#John-Card
1 messages · Page 1 of 1 (latest)
Hi there, how did you let your customer setup the card number initially? was it via SetupIntent?
Hi Jack, Thanks for your instant reply
I had customer input the card number initially and connected the temporary token with customer
Now I created another stripe customer for the customer and want to connect the card created above with this new stripe customer
I see, I think you are looking for payment method attach API https://stripe.com/docs/api/payment_methods/attach
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
oh is that possible to attach the stripe card starting with card_***** to the another customer?
FYI, the card is not set up with setup_intent
There is an equivalent attach API for source object as well https://stripe.com/docs/api/sources/attach?lang=node
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thanks Jack
Let me give it a try
can I get the source with card id?
is there no way to attach the card to different customer?
(looks like the above api does not fit to our need since we are using card rather than source)
I found another API https://stripe.com/docs/api/cards/update?lang=node for updating a card to a customer.
Personally I didn't test it out so I'm not sure whether it works, do you want to give it a try?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thanks Jack but I already checked this api but it did not work. it only works when updating the card details
OK, then I'd recommend you to take a look at the new PaymentMethod/SetupIntent API