I have made two payments with Sales app using ACTIONMANUALPAY:
Case 1: The first one was successful.
Case 2: The second one was successful too, but i did Void Transaction after the payment was successful using the button Void Transaction.
Here the result Payment object that come on EXTRA_PAYMENT for both cases:
Case 1:
{ "result": "SUCCESS", "createdTime": 1489189111631, "taxRates": { "elements": [ { "id": "1P0HEQEARAFNP", "taxableAmount": 1500, "name": null, "rate": 0 } ] }, "offline": false, "cardTransaction": { "cardholderName": "BT TTTTTTTTT", "authCode": "264472", "entryType": "EMV_CONTACT", "token": "", "extra": { "applicationIdentifier": "A0000001523010", "cvmResult": "SIGNATURE", "routingIndicator": "C" }, "state": "PENDING", "referenceId": "266940295", "last4": "4464", "transactionNo": "200080", "type": "PREAUTH", "cardType": "DISCOVER", "vaultedCard": null }, "id": "1EHM0794D17YM", "amount": 1500, "cashTendered": null, "tipAmount": null, "taxAmount": 0, "lineItemPayments": null, "order": { "id": "4AR0997254A7P" }, "tender": { "id": "094VZ0686XBP6", "enabled": true, "instructions": null, "visible": true, "labelKey": "com.clover.tender.credit_card", "label": "Credit Card", "opensCashDrawer": false, "editable": false }, "employee": { "id": "7C7NZ76AVRFP4" }, "externalPaymentId": null, "cashbackAmount": null }
Case 2:
{ "result": "SUCCESS", "createdTime": 1489189310354, "taxRates": { "elements": [ { "id": "1P0HEQEARAFNP", "taxableAmount": 1500, "name": null, "rate": 0 } ] }, "offline": false, "cardTransaction": { "cardholderName": "BT ACSTRESSTEST", "authCode": "333427", "entryType": "EMV_CONTACT", "token": "", "extra": { "applicationIdentifier": "A0000001523010", "cvmResult": "SIGNATURE", "routingIndicator": "C" }, "state": "PENDING", "referenceId": "266940295", "last4": "4464", "transactionNo": "200082", "type": "PREAUTH", "cardType": "DISCOVER", "vaultedCard": null }, "id": "TD4F57SWDPB0R", "amount": 1500, "cashTendered": null, "tipAmount": null, "taxAmount": 0, "lineItemPayments": null, "order": { "id": "K94GN4SZT96A4" }, "tender": { "id": "094VZ0686XBP6", "enabled": true, "instructions": null, "visible": true, "labelKey": "com.clover.tender.credit_card", "label": "Credit Card", "opensCashDrawer": false, "editable": false }, "employee": { "id": "7C7NZ76AVRFP4" }, "externalPaymentId": null, "cashbackAmount": null }
As you can see both payments return "result": "SUCCESS" but according to the documentation Case 2 has this possible values.
AUTH
AUTHCOMPLETED
FAIL
INITIATED
SUCCESS
VOIDFAILED
VOIDED
VOIDING
The question is. Should not return the Case 2 "result": "VOIDED"?