question

Alexey avatar image
Alexey asked Alexey commented

Online order closing

Hello, I have a problem with online order (API) closing. After adding external payment it's still not closed, but if I pay for it with clover station(using test card) everything is ok.

Is there any way to make online payment and close an order? For now I use POST request with state PAID after my payment, but I think it's not the best way..

Orders
4 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.

Alexey avatar image Alexey commented ·

POST method there https://sandbox.dev.clover.com/v3/mer...*/orders/*/payments

0 Likes 0 ·
Alexey avatar image Alexey commented ·

yes it is probably the problem is in my request body? { "tender": { "id": "ER19FDVA7E910" }, "modifiedTime": "6666666", "note": "", "amount": "925", "tax_amount":"67", "lineItemPayments": [ { "binName": "", "percentage": "100", "refunded": false, "id": "" } ], "tipAmount": "0", "cashTendered": "0", "cardTransaction": { "entryType": "KEYED", "last4": "", "authCode": "", "avsResult": "SUCCESS", "cardType": "VISA", "transactionNo": "", "type": "AUTH", "first6": "", "referenceId": "", "begBalance": "7

0 Likes 0 ·
Alexey avatar image Alexey commented ·

"token": "", "vaultedCard": { "last4": "", "cardholderName": "", "first6": "", "expirationDate": "", "token": "" }, "endBalance": "68500", "cardholderName": "ASDFASF", "state": "CLOSED" } }, "cashbackAmount": "0", "employee": { "id": "" } ], "result": "SUCCESS", "clientCreatedTime": "7777777777777777", "offline": false, "order": { "id": "" } }

0 Likes 0 ·
Alexey avatar image Alexey commented ·

just tried this, but after that order request still doesn't return payType:"FULL" just state value has changed to "locked"

0 Likes 0 ·

0 Answers

Welcome to the
Clover Developer Community