question

skhunt avatar image
skhunt asked David Marginian Deactivated edited

integration with external web ordering and payment app and custom payments

Hello!


Is it possible to implement the following use case via Clover REST API?

1. merchant create order for clients (restaurant)

2. I getting order from Clover by merchant id

3. add custom payment types (example: cash, bonus, bonus2, commission, ...)

4. user pay through my app

5. I do request to clover api, add created custom payment types to order

6. close order

Payments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

David Marginian avatar image
David Marginian Deactivated answered

Yes, that is possible.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

maximemm avatar image
maximemm answered David Marginian Deactivated edited

Thank you very much for answering!

Would you be so kind to refer to API that we could use to:
1. get the current open order number if we know the table number
2. push payment from the web app to specific order
3. get the list of payment types supported ( card-present payment in-store , CNP payment from web site, payment with rewards points, etc)


am I right that order will be closed automatically if fully paid?

5 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

David Marginian avatar image David Marginian ♦♦ commented ·

1) We don't expose info from Clover dining in our orders API. AFAIK there is no way to do this and it was not part of your original question.

2) https://docs.clover.com/reference/ordercreatepaymentfororder-2

3) Payment types supported? There is no API for this.

0 Likes 0 ·
maximemm avatar image maximemm David Marginian ♦♦ commented ·

thank you David.

I found out that there is a Clover Android SDK with an extended list of classes.

So getting back to my idea, is it possible to build an android app that runs on a Clover POS and do the following flow:

- establish a WebSocket connection to our cloud WebSocket server

- listen for the table number request

- if a table number request is received, app asks local Clover POS via Android SDK for the open order number associated with that table number (сom.clover.sdk.v3.tables2)

- send that order number via WebSocket connection to our cloud server

and then we do the payment for that table order id on our cloud server using https://docs.clover.com/reference/postordersidpay ?


0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ maximemm commented ·
As I said, Clover dining is an app, not a platform. I don't believe we provide any of the dining data (table number, etc.) via the API
0 Likes 0 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community