You can use your own checkout page in your chatbot. Your customer will be redirect to your checkout page once they click on the “Checkout” button.
You will only need to send us the URL of your checkout page.
Data Todook sent to your checkout pageImagine your checkout URL is https://example.com
When users click the checkout button inside your bot, we will automatically add these parameters.
https://example.com?order=<order_id>&page=<page_id>&user=<user_id>&total=<total>&subtotal=<subtotal>
- order: the order ID and you use it to mark the order as paid.
- page: the Facebook page id.
- user: the user id for your bot (PSID).
- total: the total value of the user shopping cart.
- subtotal: the subtotal of the user shopping cart.
Mark an order as paid
After the user paid for the order, you need to use Todook API to mark an order as paid.
You can use our API if you want more information about the user shopping cart like products in the cart.