Overview | API Call | API Response

Cancel Transaction

 

The “Cancel Transaction” feature is exactly what it sounds like: You can can a transaction without entering your merchant account on the helloPay website.


API Call

 

Send this api call with a POST method to sandbox.hellopay.com.sg/merchant/cancel (remember to change the ending ‘com.sg’ to the ending of your country).

The content type should be application/json.

"data={
 "purchaseId": "AAEAAADoKU7bT9yTqAcDHy4_BoErIbqSnssi60lprv0IEDs-mv01GDCz",
 "shopConfig": "AAEAAADoKU7YJh44utJbVDLTqqEEeiaO28_f9LjaYMu1GdoBNT9_IG--/AAEAAAgfi0NkDIDyXMhIaaM-wfYLziibzdgBQIQVoD4hzxDnQt5szEIq/0ce5b60001d7e89c7b50fbe59cfb1bf5"
}"
"data={
 "purchaseId": "",
 "shopConfig": ""
}"

Description

Purchase ID

The id helloPay sent you in the “Create a Purchase” response.

ShopConfig

Also called API Key, you can find it in your merchant account of the helloPay sandbox in “Account Settings”.


API Response

This is the response, that you will get! That means you don’t need to provide this data, you’ll receive it.

{
"success": true
}

{
"success": false
}

Description

Succes

A boolean so you can check, if it’s a success or failure response.