#smartkiparis

1 messages · Page 1 of 1 (latest)

iron crowBOT
viscid flume
#

Note that holds for cards aren't long lived; funds must be captured within 7 days for online card payments

subtle drum
#

I have this property

#

Do I need to use 'confirm' true?

#

in that case

viscid flume
#

Yep, I recommend keeping confirm: true

subtle drum
#

so when I actually use capture() method I withdraw money from customer's card?

#

or I just create a hold on them?

viscid flume
#

Your code above (creating the PI with manual capture) will create the hold. No funds will be moved until you make the capture call

subtle drum
#

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?

viscid flume
#

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

subtle drum
#

Great. We will create a hold 24 hours before service time and release after finishing the service