#nacho_446
1 messages · Page 1 of 1 (latest)
Hi there!
What's your end goal here? What are you trying to do?
If you need a test payment method, then direclty use pm_card_visa. For example create a PaymentIntent and set payment_method: 'pm_card_visa' and it will work directly.
I’m trying to attach a payment method to a stripe user without making a payment
Then create a SetupIntent, and set payment_method: 'pm_card_visa' and the customer properties: https://stripe.com/docs/api/setup_intents/create
A setup intent now how can I add the payment method to it
I told you above: when you create the SetupIntent, set payment_method: 'pm_card_visa'.
Can you share the customer ID (cus_xxx)?
cus_OlKe0usivesmtQ
that's expected, this customer has no payment method set. Can you share the SetupIntent ID (seti_xxx) you created?
I'm sorry I don't understand.
Step 1: create a customer
Step 2: create a SetupIntent with payment_method: 'pm_card_visa' and the customer property and confirm:true
Step 3: now the customer has a Payment Method saved
If you forgot step 2, then it's expected to not work.
Happy to help 🙂
So if my Frontend is doing this will he need to do the setup intent and the rest, or he just uses the sdk and do a payment method create to store it and send the id to the backend so I attach with the customer