Requirements
Before you begin, take into account the following requirements and limitations.Diagnose a payment terminal
The diagnosis request supports you in business critical processes, because the response includes:batteryLevel: This parameter is included for battery-powered terminals, and shows the battery charge level. You can use this information to let your staff know they need to recharge the terminal soon. For guidelines regarding terminal battery usage, see Manage battery power.unconfirmedBatchCount: The number of payments that the terminal has not been able to send to the Adyen host for completion (capture and settlement). AnunconfirmedBatchCountgreater than 0 (zero) indicates there is possibly a problem with your network.
- First check the condition of the terminal.
- Then, if the
unconfirmedBatchCountis greater than 0 (zero), check if the Adyen host system is reachable.
1. Verify the condition of a terminal
To check the condition of a payment terminal:-
Make a Terminal API diagnosis request, specifying:
-
The standard
SaleToPOIRequest.MessageHeaderobject, withMessageClassset to Service andMessageCategoryset to Diagnosis.
JSON
Java
-
The standard
-
Use the following parts of the response to check the condition of the terminal:
-
The
POIStatusobject:The diagnosis response includes P2PE protocol, SRED, vault, and app manager versions as provided by the hardware manufacturer. You need to specify this data in your annual PCI assessment.
Diagnosis response for a P2PE terminal that is not battery-powered -
The
-
In the
AdditionalResponsecheck the value of theunconfirmedBatchCount. This should be 0 (zero). If not, there may be a problem with your network.
If theunconfirmedBatchCountis greater than 0, proceed to step 2: Verify that the Adyen host system is reachable.
2. Verify that the Adyen host system is reachable
If the diagnosis response shows anunconfirmedBatchCount greater than 0 (zero), there may be a problem with your network. To check if this is the case:
-
Make another diagnosis request as described under 1. Verify the condition of a terminal, but this time set
DiagnosisRequest.HostDiagnosisFlagto true. A communication test will try to reach the Adyen host system.JSON
Java
-
In the response, check the
HostStatusarray:Diagnosis response when Adyen host is reached
Diagnose a Mobile SDK solution
In a Mobile SDK solution, the Terminal API diagnosis request enables you to do the following:-
Check if there are stored offline payments that have not been forwarded to Adyen yet. If the request has
hostDiagnosisFlagset to true, the SDK will try to go online and forward these transactions. Diagnosis of offline payments is only included if your Mobile SDK solution supports Store and Forward offline payments. - Check for security threats that would block transactions. If threats are detected that an operator can solve, the response includes information about the cause and solution of the problem.
- Check the expiry date of the Android or iOS SDK that is used on the mobile device. Transactions will be blocked if mandatory updates are not carried out.
- For an iOS Mobile SDK solution, check if there are failed captures that need to be retried.
-
Make a Terminal API diagnosis request with:
-
SaleToPOIRequest.MessageHeader: The standardMessageHeaderobject, with the following parameters.
-
-
In the response, check the following:
-
The
HostStatusarray:
unconfirmedBatchCountshows remaining transactions, wait before making another diagnosis request. Diagnosis response for a mobile solution -
The
-
If present, Base64URL-decode the
storeAndForwardStatusvalue. The resulting JSON object can include:Decoded storeAndForwardStatus -
Base64URL-decode the
attestationStatusvalue. The resulting JSON object can include:Decoded attestationStatus
Failed diagnosis request
When the payment terminal or mobile SDK is already processing another request, the diagnosis request fails. You receive aDiagnosisResponse object with:
Response.Result: FailureResponse.ErrorCondition: Busy
