Migrated from Redmine #20 | Author: deepak ev Status: Resolved | Priority: Normal | Created: 2017-08-18
How do payment API work if we are going use API’s for creating client and service provider app( not using RWD website provided by simplybook.me).
Once the booking API ( book) call is success, will it return a url for payment gateway ?
2.What means “payment processor” in ConfirmBookingPayment API. Is this API used by service provider ?
You accept payment on your side, and when the payment is success you call confirmation method.
Workflow:
Call method @book@ and get booking id (ids)
Call method @getBookingCart@ and get all information with amount, currency, etc.
Now you can pass this information to your payment system
As soon as you get success callback from payment system you call @confirmBookingCart@ where @$paymentProcessor@ is your payment processor. It can be ‘delay’, in case you allow delay payments in settings.
Is this from client perspective or service provider .
Can you share what service provider has to do to approve booking ?
We need one flow where client makes a booking then makes payment , get cart info then approve . Then service provider check the booking and approves the same same . IS this correct?
In case client has successfully paid for booking, then it will be confirmed automatically, unless you call confirmBookingCart with ‘delay’ payment method and Approve booking plugin is turned on.
So in this case
1.if client made a booking and did not pay and called confirmBookingCart. So does service provider need to approve if Approve booking plugin is turned on ?
2.if client made a booking and did not pay and called confirmBookingCart. what if Approve booking plugin is turned off ?
Can you share the details about the complete flow . We are missing some thing in flow
Client is not able to call confirmBookingCart.
You have to call this method and only from server side.
So why do you need to call this method until client pays?
In case you are using Approve booking plugin then when you call confirmBookingCart the booking will be confirmed automatically, unless you call confirmBookingCart with ‘delay’ payment method.
Please explain what do you need in details and i will tell how to do it.
Client is not able to call confirmBookingCart.
Question: Do you mean client is not supposed to call confirmBookingCart? What do you mean by server side only ?
You have to call this method and only from server side.
Question: server side you mean by admin API? if yes can service provider ( junior employee access) has to call this ?
So why do you need to call this method until client pays?
Question: ConfirmBooking should be called by whom? service provider after booking by cleint is called ?
In case you are using Approve booking plugin then when you call confirmBookingCart the booking will be confirmed automatically, unless you call confirmBookingCart with ‘delay’ payment method.
Question: so we have set the delay in payment settings for delay payment ?
Please explain what do you need in details and i will tell how to do it.
Question: What are client side process based on API’s and then which admin( service provider) API’s to be used to aprove the booking .