Migrated from Redmine #399 | Author: Arthur Lima Status: Feedback | Priority: Immediate, there is BUG! | Created: 2019-07-05
I’ve already done the entire booking process, and now I need to make the payment process and I’m having trouble understanding about how is the flow.
I need some help x…x
Hello, Arthur!
Good news, now you can accept payment via admin API. please use confirmInvoice method: API documentation | SimplyBook.me Online Scheduling
Note that you need to pass handle_invoice => true to additional info for book method. for example:
@$client->book(1, 1, ‘2019-07-30’, ‘14:00:00’, [‘name’ => ‘Client name’, ‘email’ => ‘clientname@gmail.com’, ‘phone’ => ‘999999999999’], [‘handle_invoice’ => true]);@
Can i add this attribute, ‘handle_invoice’ to the admin book call?
Is it works as the public book call?
Thanks in advance
Dmitry Bondarev wrote:
Hello, Arthur!
Good news, now you can accept payment via admin API. please use confirmInvoice method: API documentation | SimplyBook.me Online Scheduling
Note that you need to pass handle_invoice => true to additional info for book method. for example:
@$client->book(1, 1, ‘2019-07-30’, ‘14:00:00’, [‘name’ => ‘Client name’, ‘email’ => ‘clientname@gmail.com’, ‘phone’ => ‘999999999999’], [‘handle_invoice’ => true]);@
Can i add this attribute, ‘handle_invoice’ to the admin book call?
This attribute is allowed only for public API. If you need to make invoice when you are calling admin API you can pass @‘make_invoice’ => true, ‘payment_processor’ => ‘your_payment_processor_name’@, however it will instantly confirm payment, because it is admin API.
Is it works as the public book call?
Yes it works for public API.
I’ve tried the address without ‘/admin’, but a had a response with the message ‘Client authorization required’
Dmitry Bondarev wrote:
Hi Vitor!
Can i add this attribute, ‘handle_invoice’ to the admin book call?
This attribute is allowed only for public API. If you need to make invoice when you are calling admin API you can pass @‘make_invoice’ => true, ‘payment_processor’ => ‘your_payment_processor_name’@, however it will instantly confirm payment, because it is admin API.
Is it works as the public book call?
Yes it works for public API.
Hi, I followed these steps and received the token successfully, but when I try to call the book method with the returned token, I receive this message ‘Client authorization required’.
it seems you enabled client login additional feature and need to handle this properly in book call:
please just pass client_id and client_sign or client_login and client_password information as clientData.
Do not pass any other client data.
Make sure that you already have this client.