Using the value shown by “getCheckoutOptions”, we analyze the types of ticketing plans or membership plans each of users own.
And we have a problem that since Oct 6th, “getCheckoutOptions” is no longer working properly.
For example, using the service, we used to check the number of tickets left or if we still had a free ticket for first-time visitors but any of the data we need are not shown anymore.
However, “getServiceAvailability” is still available in order to use the API above somehow.
So, we are thinking that it is “getCheckoutOptions” that’s having a problem.
Does anyone know how to solve this problem so that we can verify our user’s tickets?
I think I am encountering the same problem: getcheckoutOptions doesn’t appear to return any information on pricing plans, despite my ‘test user’ having both a package-type and a membership-type pricing plan set up.
because available pricing plans aren’t returned, there’s no way to verify in code how many sessions have been purchased by the user (totalCredits) or how many remain (remainingCredits).
I thought I’d found an alternative way by using getCurrentMemberOrders as this returns details of paid plans BUT unfortunately it doesn’t show sessions/credits information.
@jacobg Thanks so much! Can you also please provide an example of how the result from getcheckoutoptions can be read in code? The example in the Velo reference doesn’t appear to work.
Thanks again, Paul
@o11 , @info12559 and @eduard
The issue is resolved.
For validation, please consider a class service with with a paid plan, online and offline payments.
Thanks for the follow up! Really appreciate it.
Did the fix already get rolled out? I’m testing it with a class service with online payments and paid plans. My logged in user has an active plan* and still gets no information about the plan. Only Online payment is mentioned as an option:
{ “type” : “wixPay_Online” }
non-zero sessions left are verified on the “my subscriptions” page
I’ve been testing out the issue on a test site (a free site plan) and all appeared well. Unfortunately, having now updated my live site with the new code, it still only returns:
{type: 'wixPay_Online'}
{type: 'wixPay_Offline'}
This is despite the current user having a valid paid plan available (see screen cap from my-subscriptions page below)
I’ve subsequently went back to my test site and it’s not working there either.
Hi Jacob,
Unfortunately, the problem is back. But not in a reliable way and I suspect it’s the same as when I was having the issue before: getCheckoutOptions() sometimes does, but recently more often does not return information about available plans. Sometimes picking a different slot for the same service would make it return the plan info, sometimes not. Today I was not able to find a slot for which I would get the plan data returned.
This is an extremely bad user experience for our customers: People who paid hundreds of dollars for a membership are unable to use it and we have to book clients manually. Unfortunately, the native Wix Bookings flow that comes with the app is inadequate since it can’t display a schedule for more than one service at a time.