[#570] when booking with API, Payment timeout does not work

Migrated from Redmine #570 | Author: Angelo A
Status: Feedback | Priority: High, I’m very impatient | Created: 2020-09-08


Hello,

I have the “Accept Payments” feature enabled. My payment timeout is set at 20 minutes, but when I book an appointment using the API, this timeout is not applied to those bookings. None of the booked appointments get cancelled after this timeout. How can I apply this?

Dmytro Bondarev wrote:

Hi! Please provide info how you make bookings.

Angelo A wrote:

Dmitry Bondarev wrote:

Hi! Please provide info how you make bookings.

Hi Dmitry,

I use: API documentation | SimplyBook.me Online Scheduling
And then I implemented my payment processor’s flow, and when they call my webhook I call: API documentation | SimplyBook.me Online Scheduling

But if I don’t call the confirmBookingPayment, I expect that the timeout will automatically cancel my booking

Dmytro Bondarev wrote:

please pass @‘handle_invoice’ => true@ to @$additional@.
and then use admin API to confirm invoice. API documentation | SimplyBook.me Online Scheduling

Angelo A wrote:

Dmitry Bondarev wrote:

please pass @‘handle_invoice’ => true@ to @$additional@.
and then use admin API to confirm invoice. API documentation | SimplyBook.me Online Scheduling

Awesome Dmitry! Thank you!

Angelo A wrote:

Dmitry Bondarev wrote:

please pass @‘handle_invoice’ => true@ to @$additional@.
and then use admin API to confirm invoice. API documentation | SimplyBook.me Online Scheduling

I tried this solution and made an appointment, but it’s now 20 minutes ago when I created it, and it doesn’t delete automatically.

My account is coronatest and my booking code is 1cby3z3lor (booking is on 09-09-2020 at 09:00 - 10:00)

Dmytro Bondarev wrote:

Hm.. i see it is cancelled by payment timeout.

Angelo A wrote:

Dmitry Bondarev wrote:

Hm.. i see it is cancelled by payment timeout.

Haha, I also see it’s cancelled now, 30 mins later instead of 20. But okay, it’s fine, it’s working :slight_smile: