question

nhardia avatar image
nhardia asked David Marginian Deactivated answered

How to associate clover flex device payment with order ?

Hi,

We have created web application where we are using Multiple inventory items which is created in sandbox for making order.

on Final payment we are using https://github.com/clover/remote-pay-cloud-examples/tree/master/remote-pay-cloud-starter Where we are connecting with device and Performs a sale on our Clover device and on success response we are creating order with REST API

Using two below APIs:

1) https://apisandbox.dev.clover.com/v3/merchants/{merchantID}/orders (API to create order)

REQUEST: {"total" : totalAmount, "paymentState":"PAID", "payments":[{"id":paymentId}]};

2)https://apisandbox.dev.clover.com/v3/merchants/{merchantID}/orders/{orderID}/bulk_line_items (API to add items into the order)

REQUEST: {"items" :[{ "item":{"id" : inventoryId}, "name" : name, "price": unitPrice, "unitQty" : quantity})]}


We were successfully able to create order and adding bulk line item to order.

But unable to associate order with clover device payment as we also wanted to those inventory items on print as well.

Clover Flex
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

The Clover Connector doesn't work this way. It is for use with an external/3rd party POS (non Clover) and assumes the POS is the owner of the order (creates/manages a non Clover order). It allows the POS to take a payment for the order and internally creates a new Clover order (because an order is required for all Clover payments). There is no way to associate the payment taken with an existing Clover order.

10 |2000

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

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