question

jitesh-tandel avatar image
jitesh-tandel asked David Marginian Deactivated commented

New Print REST API: Payment Receipt print issue

Hello,

I have used the new Print REST API to print receipts(Kitchen, Order, and Payment) automatically. The new Print REST API prints Order Receipt and Kitchen Receipt perfectly but it does not print Payment Receipt. My Merchant needs Order Receipt and Payment Receipt at the reception registered printer. Merchant will keep Order Receipt and end customers will have Payment Receipt.

I am using the below code for printing.

curl --request POST \
  --url https://api.clover.com/v3/merchants/{mId}/print_event \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{"orderRef": {"id": "8K5KW7A3G2G02"},"category":"LABEL"}'

To troubleshoot, I retrieved the merchant properties using the following API to know more about Receipt Printer settings. In the API response, I noticed "autoPrint" property is set to False. I am not sure whether that property is important or not for the Payment Receipt printing.

https://api.clover.com/v3/merchants/{mId}/properties

The Payment Receipt is the hold-up from the code going into production. Am I missing something?

If it is possible then how can I print the Payment Receipt? Please help me to fix this problem.

Thank you

REST APIPrint
10 |2000

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

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated commented

No, it is not possible. If the merchant requires a payment receipt they can manually print it when the customer comes in to pick-up their order.

2 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.

Sorry to say but my merchant needs payment receipt automatic like the Order Receipt.Right now Order Receipt print automatically when a new order comes in. I would like to know How can I make it automatic? Please provide me any idea or approach which I can present to my Merchant.

I am waiting for your reply.

Thanks

0 Likes 0 ·
The only option would be for you to build a native app (android app that runs on the merchant's Clover devices) and then uses the Android SDK to print the payment receipt. This is a ton of work, and not feasible in my opinion. I am not quite sure why your merchant insists on this. When payments are made via our EComm API the receipt can be viewed online, etc.
0 Likes 0 ·

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