Validate Transaction

You can verify the information sent to your purchaseCallbackUrl with a simple API call to our validation service.

Example Validation Request

curl -H "Content-Type: application/json" \  
     -u rocket:rock4mebuddy \
     -d "data={ \
        "transactionId": "AAEAAADoKU7bislxLFcY3OVfNKG0kipnnSZP1rUFIqESdPwblWE-xbU8", \
        "transactionType": "Purchase", \
        "shopConfig": "AAEAAADoKU7YJh44utJbVDLTqqEEeiaO28_f9LjaYMu1GdoBNT9_IG--/AAEAAAgfi0NkDIDyXMhIaaM-wfYLziibzdgBQIQVoD4hzxDnQt5szEIq/0ce5b60001d7e89c7b50fbe59cfb1bf5" \
         }" \
     https://sandbox.hellopay.com.sg/merchant/transaction-events

Example Response

A successful answer would look like this:

{
    "success": true,
    "transactionEvents": [
        {
            "creationDateTime": "2014-04-02T14:14:10Z",
            "transactionType": "Purchase",
            "newStatus": "Created",
            "oldStatus": null,
            "transactionId": "AAEAAADoKU7bislxLFcY3OVfNKG0kipnnSZP1rUFIqESdPwblWE-xbU8",
            "merchantReferenceId": "872116",
        }, 
    ]
}

Here's an example of an error response:

{
  "success": false,
  "message": "Sorry, it did not work"
}