wix-bookings API: PaymentType "wixPay_Offline" not working in checkoutBooking() function

Hi there!
My wife (www.momsup.de) offers courses with Payment Type “FREE” and “OFFLINE” in the Database Bookings/Services (wix Premium). With “FREE” everything works fine, with “OFFLINE”, the checkoutBooking() function always stucks without any ERROR-Message. I’ve read and tried out almost everything but nothing works (set up manual Payment in the Dashboard, tried out CouponCodes, read every Documentation, Examples, Tutorials etc.)
Please help! :wink:

The relevant Code:

async function bookingFunction (payment, bookingInfo) {
    if (payment === "FREE") {
        let bookingStat = await bookingCheckout (bookingInfo);
        console.log("bookingStat:",bookingStat);
        return bookingStat;
        }
    else {
        let options ={
        "paymentType": "wixPay_Offline",
        "couponCode": ""  //tried without "couponCode" & with an existing Code
        }
        let bookingStat = await bookingCheckoutPay (bookingInfo, options);
        console.log("bookingStat:",bookingStat);
        return bookingStat;
        }
}

My bookingCheckoutPay function:

async function bookingCheckoutPay (bookingInfo, options) {
    console.log("BookingInfo(Pay):",bookingInfo);
    console.log("Options:",options);
    return wixBookings.checkoutBooking(bookingInfo, options) //this stucks!
        .then( (results) => {
        let id = results.bookingId;
        console.log("Buchungsnr.:",id);
        let status = results.status;
        console.log("Buchungsstatus:",status);
        $w('#confirmationText').text = status;
        return status;
        } );
}

My bookingCheckout function (for “FREE” Payment, works perfect!):

async function bookingCheckout (bookingInfo) {
    //console.log(bookingInfo);
    return wixBookings.checkoutBooking(bookingInfo)
        .then( (results) => {
        let id = results.bookingId;
        console.log("Buchungsnr.:",id);
        let status = results.status;
        console.log("Buchungsstatus:",status);
        $w('#confirmationText').text = status;
        return status;
        } );
}

Monitoring the test on live site:


The bookingInfo is okay, it stucks because of the paymentOptions, any Ideas?

Thanks a lot for your support!
Greetings,
Tom

Instead of

let options ={
        "paymentType": "wixPay_Offline",
        "couponCode": ""  //tried without "couponCode" & with an existing Code
        }

Try this

let options ={
        paymentType: "wixPay_Offline",
        couponCode: ""  //tried without "couponCode" & with an existing Code
        }

(Note the deleted double quotes).

Hey Giri,
Thanks, but it doesn`t work!
I’ve already tried it out, because I found an example to wix-booking paymentType here in the forum without the quotes although it is in the Corvid Reference shown with qoutes…

I just gave this another attempt but it still doesn`t work…

Could this be an Wix issue?
Is there an official Corvid by Wix-Support which I can contact?

@bolzthomas Hi. I guess that this might not be relevant anymore, but if it is - could you please give more information about the booking service settings you’re using?
I’ve verified this code on my site and it seems to be working for a service with offline payment.

Thank you in advance
Alex

An update: we found the issue. It is specific to the “Course” service. It is already addressed with our developers team.

Thank you,
Alex

Hi Alex,
great to hear that!!
If you need any further Information, please feel free to contact me.
Where will I find the Info about the Bugfix?

Thanks a lot,
Tom

I’ll try to send an update here once the issue is resolved.

Thank you for understanding

@bolzthomas Hi. It seems that the issue was resolved. Could you please confirm?

@aleksander-denga Yeah, confirmed!!!
Finally, after some trouble, our booking solution is working on the website and the best wife is quite happy… :wink:
Thanks a lot for your support!
Best wishes,
Tom