I use the remote pay cloud API for semi-integration with Clover Flex.
The below is part of a successful sale response I received.
Can you explain these:
1) Difference between "success": true and "result": "SUCCESS" and "payment": { "result": "SUCCESS" } - Which one should I use to check if a sale was successful?
2) Payment ID, Order ID, Tender ID, External Payment ID, Reference ID, Transaction No, Token - What are they and which of these is the reference ID from the payment processor?
3) What are the fields I am supposed to save for audit purposes?
{ "success": true, "result": "SUCCESS", "payment": { "id": "3SGT5BT0WMZP6", "order": { "id": "E3XZH10ZS8ZB4" }, "tender": { "id": "1AZVE8JXPVKBR", }, "amount": 2200, "externalPaymentId": "BAP1G3C00XGBB", "employee": { "id": "DFLTEMPLOYEE" }, "createdTime": 1529615015297, "result": "SUCCESS", "cardTransaction": { "cardType": "DISCOVER", "entryType": "SWIPED", "type": "AUTH", "authCode": "OK8579", "referenceId": "817200000227", "transactionNo": null, "state": "CLOSED", "vaultedCard": { "last4": "6668", "cardholderName": "DISCOVER TEST CARD", "expirationDate": "1218", "token": "7297162975886668" } } } }
Thank you.
Alex