#diamadis_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1219610968477139045
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ happy to help
do you mean you want the customer/bidder to pay one time and then send the money to the different buyers?
No. Imagine one auction that consists of these 3 items: 1) A hotel room for dates 11/7-20/7, 2) Car rent for 13/7-15/7 and 3) something at a later date let's say 02/08 and the bidder wins the auction at 25/03. The bidder will pay for the hotel room at 11/7, for the car at 13/7 and one more payment at 02/08. We could split the bid amount into different payment intents from the start but this adds much more complexity to our process.
but then why do you need the initial PaymentIntent for?
Because we want to validate that the bidder actually has the amount that he is bidding for
For example I could bid for 10.000 euros but only have 100 euros in my bank account
And we also need to reserve the money
you can create an manual auth but that only lasts for 7 days
This doesn't meet our requirements, that 7 days restriction won't work for us. Maybe I didn't phrase my question correctly. What we want is somehow to reserve the total amount from the bidder one time ( so that we are sure that he has the amount, and won't spend it to somewhere else before each payment ), and then proceed to the payment of each auction item separately.
Maybe using payment intents is not the right approach?
You can increate the 7 days to 31 days following this guide:
https://docs.stripe.com/payments/extended-authorization
But you can't reserve the total amount more than that period
Ok, using this implementation can we define multiple payment dates with fractions of the total amount or we need to create different holds for each item?
No you cna't do multiple captures:
A partial capture automatically releases the remaining amount.
https://docs.stripe.com/payments/place-a-hold-on-a-payment-method#capture-funds:~:text=A partial capture automatically releases the remaining amount
What you can do in your case is to use setupintent collect valid payment method
and then charge the payment method for multiple instances
but you can't guarantee that the full amount is there
Or you can charge from the begining the amount from your customer
add it to your customer balance and then use invoice in order to use that balance
Ok, thank you very much