#d3levv
1 messages · Page 1 of 1 (latest)
Hello! Setup Intents are likely what you want - they allow you to collect payment details without charging them immediately (and you can charge them at a later point)
Yep, i have fallowede this guide https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements and succesfully create succesfull setup intent, however reading through it now, can user have multiple setupIntents, also i am having difficulties canceling the setup intent as you can't cancel it if its successfull
Yes, a customer can have multiple setup intents
Can you clarify what behavior you want when cancelling a setup intent?
That's good to know
To clerify:
Seller receives notification when new booking is created(customer finishes checkout), now if the seller cancels the booking ideally i want to remove that setup intent, also if the customer is not yet charged, i would want to do the same, or if 2 days have passed.
You can't cancel a Setup intent once it's successful, but instead you could detach the created Payment Method (so that it can't be used for future payments). Is that what you want?
Also if he approves to charge the customer given price for the service(data is comming from firebase
So to make sure i understand correctly:
When setup intent is successful, paymentMethod is attached to the user? Where should I add the amout that i wan't to potentionally charge the customer ?
The amount is something you'd do with an entirely separate object (a Payment Intent). The Setup Intent is ONLY for collecting payment method details, it can't be used for actually charging a customer.
The general idea would be that you create a Setup Intent (which creates a Payment MEthod) and you'd used that Payment Method with a Payment Intent when you want to charge your customer
Thanks for the information!