Can someone help me with a problem? I am using the javascript clover connector on the cloud solution (Remote Cloud Pay) to connect to the clover device and process payments. For some reason, I cannot update the order to attach payment to it. When I call the update order endpoint, it updates everything but fails to payment to the order. Another strange thing that it does is even though it updates the state of the order to "Closed" or "Locked", the order still shows on the device and web portal as open.
My Updated Order object with the payment attached in is (I removed some stuff for neatness):
{ "id": "33JQRKKZM7HMY", "payments":[{ "id": "F4K7EREVMVW24", "order": { "id": "N9MQ83T58CCAG" }, "device": { "id": "e5fcd724-99d5-f427-886a-4b604b952684" }, "tender": { "href": "https://sandbox.dev.clover.com/v3/merchants/9ZQTAJSQKZ391/tenders/V2WYKSWH4ZZZ4", "id": "V2WYKSWH4ZZZ4" }, "amount": 2754, "tipAmount": 389, "taxAmount": 0, "externalPaymentId": "REQV2MX9XSNM7", "employee": { "id": "VH7JB40JRGCAG" }, "createdTime": 1685861334000, "clientCreatedTime": 1685861335000, "modifiedTime": 1685861337000, "offline": false, "result": "SUCCESS" }] }
The endpoint URL I am calling is:
https://sandbox.dev.clover.com/v3/merchants/9ZQTAJSQKZ391/orders/33JQRKKZM7HMY
But the response I am getting is:
{ "href": "https://sandbox.dev.clover.com/v3/merchants/9ZQTAJSQKZ391/orders/33JQRKKZM7HMY", "id": "33JQRKKZM7HMY", "currency": "USD", "employee": { "id": "VH7JB40JRGCAG" }, "total": 2755, "title": "general@dss.com gwsgew Paid", "orderType": { "id": "SS48CC769P32R" }, "taxRemoved": false, "isVat": false, "state": "Closed", "manualTransaction": false, "groupLineItems": false, "testMode": false, "payType": "FULL", "createdTime": 1685861320000, "clientCreatedTime": 1685861320000, "modifiedTime": 1685861343000 }
It seems to totally ignore adding the payment to the order. Am I missing something? Is this a bug?