#smartkiparis
1 messages · Page 1 of 1 (latest)
Hi there! Yes, the way to do this is to set capture_method: manual: https://stripe.com/docs/payments/place-a-hold-on-a-payment-method
Note that holds for cards aren't long lived; funds must be captured within 7 days for online card payments
Yep, I recommend keeping confirm: true
so when I actually use capture() method I withdraw money from customer's card?
or I just create a hold on them?
Your code above (creating the PI with manual capture) will create the hold. No funds will be moved until you make the capture call
The mechanic of our application:
We calculate amount for deposit. Then at needed time we create a hold on that amount on a customer's card. When the service for this customer is over, we 'release' this deposit.
So for that mechanic I just create an Intent with manual capture option and at the moment of release I cancel an Intent, right?
Yes, that sounds like the right approach as long as it doesn't take more than 7 days to complete the service for the customer. Holds for cards automatically expire after 7 days
Great. We will create a hold 24 hours before service time and release after finishing the service