[#521] How do I handle payment in the API?

Migrated from Redmine #521 | Author: Jörgen Söderqvist
Status: Feedback | Priority: High, I’m very impatient | Created: 2020-04-21


I have a service that is included in a membership. Like a 5-times credit membership. I know the client has it but how do I use it when making the API request to book the service? I only get the answer ”Membership is required to book this service"

And a second question, If the client wants do pay by credit card instead of membership, how do the API handle the payment process? I’ve enabled the “Accept payments” feature and set up a Stipe account.

Dmytro Bondarev wrote:

To pass membership please add @client_membership_id@ to @additional@ object of book method.
And you need to handle payment on your side. And then approve payment.
There is no API to do this as it require some integration with payment processors. Simplybook API is to handle bookings.

Jörgen Söderqvist wrote:

Dmitry Bondarev wrote:

To pass membership please add @client_membership_id@ to @additional@ object of book method.
And you need to handle payment on your side. And then approve payment.
There is no API to do this as it require some integration with payment processors. Simplybook API is to handle bookings.

Ok..
#1. That is not in your api-documentation?? How come? Is there more fields/option that I should be aware of?

#2 What? What do you mean by ”There is no API to do this as it require some integration with payment processors. Simplybook API is to handle bookings.”

Why do you have methods like ”getPaymentProcessorConfig” or ”validatePayment” then?

And why are you writing this on your site for developers:
"Our API gives you access to all the booking data you need to build and deploy scheduling capabilities to your audience of clients.

Connecting a client with your business schedule, we are bridging an entirely new layer of commerce. We believe that direct appointment booking on your app or website allows us to provide you with client delivery, not just a client potential.

… Clear and simple interface. Building your own booking service is easy peasy
You can easily plug-in all the functionality you need …"

I’m searching for a booking system for a yoga client. Your system has all the features we are looking for. We have talked to your supports personal in the live chat to set up everything so it handles what we want. And you are telling me that you don’t handle ”Package feature”, You don’t handle ”Class feature” You can’t get how many remaining slot’s is left for a service och class. And now you are saying that you’d don’t handle payment? Don’t you think that if your api don’t handle things your showing in your demo site or features/plug-in you enabling in the admin, you should a least print that out very loud and clearly!!

Redmine Admin wrote:

Please check out our API documentation, it is pretty clear which methods we have API documentation | SimplyBook.me Online Scheduling
We never said our API can do everything what you can do via our interfaces.

Jörgen Söderqvist wrote:

Redmine Admin wrote:

Please check out our API documentation, it is pretty clear which methods we have API documentation | SimplyBook.me Online Scheduling
We never said our API can do everything what you can do via our interfaces.

Is it really that clear??
I can’t upload a screen dump (says just not found), but this is the methods you have in the same link you sent me:

getPaymentProcessorConfig
validatePayment
getBookingCart
getBookingCartInfo
getBookingCartStatus
confirmBookingCart
confirmBooking
confirmBookingPayment

Can you please explain what you mean by “it is pretty clear”