Query Status With A1Pay Reference

The second way you can query for the status of a transaction, this time, using the A1Pay reference that is returned to your ReturnURL through URL query parameters
Get Transaction Status
Always look out for the IsSuccessful property of the data object in the response. A status=success alone is not enough to determine that your transaction is successful
Its always a good practice to log all responses from A1Pay for future reference.