#d3levv

1 messages · Page 1 of 1 (latest)

last sundialBOT
untold pasture
#

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)

acoustic gyro
untold pasture
#

Yes, a customer can have multiple setup intents

#

Can you clarify what behavior you want when cancelling a setup intent?

acoustic gyro
#

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.

untold pasture
#

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?

acoustic gyro
#

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 ?

untold pasture
#

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

acoustic gyro
#

Thanks for the information!