We’ve inherited a POS system that uses the Payment Bridge API to send sales transactions. We’re receiving the callbacks successfully but occasionally we are receiving some with an unexpected status in the response.
Here’s a sample of a successful response:
{
"adjustToAddCharges": false,
"amount": 570,
"applicationIndex": -1,
"authzOnly": false,
"autoClose": false,
"autoPrintReceipt": false,
"callerPackageName": "co.poynt.services",
"captureWithCard": false,
"cashOnly": false,
"cashbackAmount": 0,
"creditOnly": true,
"currency": "USD",
"debitOnly": false,
"disableCash": false,
"disableChangeAmount": false,
"disableCheck": false,
"disableDebit": false,
"disableDebitCards": false,
"disableEMVCL": false,
"disableEMVCT": false,
"disableEbtCashBenefits": false,
"disableEbtFoodStamps": false,
"disableEbtVoucher": false,
"disableMSR": false,
"disableManual": false,
"disableOther": false,
"disablePaymentOptions": false,
"disablePaymentWallet": false,
"disableTip": true,
"ebtCashCashback": false,
"incrementalAuthWithCard": false,
"isBalanceInquiry": false,
"manualEntry": false,
"multiTender": true,
"nonReferencedCredit": false,
"offlineAuth": false,
"readCardDataOnly": false,
"referenceId": "...",
"skipPaymentConfirmationScreen": false,
"skipReceiptScreen": false,
"skipSignatureScreen": false,
**"status": "PROCESSED"**,
"tipAmount": 0,
"tipAmounts": { "...": 0 },
"transactions": [
{
"action": "AUTHORIZE",
"amounts": {
"cashbackAmount": 0,
"currency": "USD",
"orderAmount": 570,
"tipAmount": 0,
"transactionAmount": 570
},
"authOnly": false,
"context": {
//... removed
},
"createdAt": "2025-02-03T15:25:05Z",
"customerLanguage": "en",
"customerUserId": 1,
"fundingSource": {
"card": {
//... removed
},
"debit": false,
"emvData": {
//... removed
},
"entryDetails": { "customerPresenceStatus": "PRESENT", "entryMode": "INTEGRATED_CIRCUIT_CARD" },
"type": "CREDIT_DEBIT"
},
"id": "removed",
"processorResponse": {
//... removed
},
"references": [
{ "customType": "referenceId", "id": "...", "type": "CUSTOM" }
],
"signatureCaptured": true,
"signatureRequired": true,
"status": "AUTHORIZED",
"updatedAt": "2025-02-03T15:25:06Z"
}
],
"voucher": false
}
We’re trying to determine the expected values for "status": "PROCESSED"
. We’ve found in Payment Actions - Payment Bridge API | Documentation the explanation that the callbackUrl will receive a Payment object. The documentation for the Payment object lists the getStatus call as returning a PaymentStatus which is detailed here: PaymentStatus (Poynt SDK - API). The problem is these are the values that are appearing in Payment.Transactions.Status not Payment.Status. How do I find the expected results of Payment.Status.
Right now we have code to handle RECEIVED, STARTED, and PROCESSED but have come across other instances where the value returned was not one of those 3. We could add some logging to capture that but wanted to find a more direct answer.
Thanks.