#diamadis_api

1 messages ยท Page 1 of 1 (latest)

tribal prairieBOT
#

๐Ÿ‘‹ 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.

smoky nebulaBOT
cosmic fox
#

๐Ÿ‘‹ happy to help

#

do you mean you want the customer/bidder to pay one time and then send the money to the different buyers?

latent idol
#

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.

cosmic fox
#

but then why do you need the initial PaymentIntent for?

latent idol
#

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

cosmic fox
#

you can create an manual auth but that only lasts for 7 days

tribal prairieBOT
latent idol
#

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?

undone oak
#

But you can't reserve the total amount more than that period

latent idol
#

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?

undone oak
#

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

latent idol
#

Ok, thank you very much