Moolahgo's webhook will send HTTP POST payload to our customer's configured URL when one of our events are triggered. Currently Moolahgo will help you up to set up our webhook according to your desired URL through our adminstration system, please contact us for more information
Please provide us a HTTPS routes for us to send our webhook payload to.
 
Setting your secret token
Please provide us the secret token you wish to set-up. Currently we will have help you to set-up the secret token.
When your secret token is set, Moolahgo uses the secret token you have provided us to create a hash signature with each payload. Moolahgo uses an HMAC hexdigest to compute the hash and this hash signature is passed along with each request in a extra headers as x-moolahgo-signature.
Suppose you have a url listening to webhooks, its will look something like this:
 
Responsive image
The available events are:
 
Name Description Example JSON
transaction_newpendingpayment When a new transaction is created
{"event":
"transaction_newpendingpayment",
"detail":{"listingid":601,"pendingpaymentid":"1280",
"create_at":"2019-11-19 09:24:02",
"status":"waiting for payment"
}
}
transaction_otr When pendingpayment is approved by Moolahgo
{"event":
"transaction_otr",
"detail":{"listingid":601,"pendingpaymentid":"1280",
"create_at":"2019-11-19 09:24:02",
"status":"pending detailed OTR"
}
}
transaction
_activeorigin
When transaction status change to transaction_activeorigin
{"event":
"transaction_activeorigin",
"detail":{"listingid":601,"pendingpaymentid":"1280",
"create_at":"2019-11-19 09:24:02",
"status":"Active"
}
}
transaction
_activedestination
When transaction status change to transaction_activedestination
{"event":
"transaction_activedestination",
"detail":{"listingid":601,"pendingpaymentid":"1280",
"create_at":"2019-11-19 09:24:02",
"status":"Active"
}
}
completetransaction When transaction is completed
{"event":
"completetransaction",
"detail":{"listingid":601,"pendingpaymentid":"1280",
"create_at":"2019-11-19 09:24:02",
"status":"Completed"
}
}