Simulating webhooks

Hello, I have just received my mondo card and absolutely loving it!

I have got so many ideas for the api, and can’t wait to play. One thing that is stopping me develop cool stuff is the fact, that from what I can tell, there is no way to simulate the webhooks.

The only way I can test my webhooks is by actually making a transaction which could get very expensive very quickly!

Is there anything on the horizon aid developement in this area or have I just completely missed something?

Thanks

I think if you send someone a P2P payment the webhook is fired. You can do a 1 penny transaction, so won’t be too expensive to test :slight_smile:

Aha awesome that might be a good work around for the moment. Would be great to have a “fire webhook” button for here though :https://developers.getmondo.co.uk

1 Like

You can simulate transactions on the staging system here:

https://staging-tx-sim.getmondo.co.uk

https://staging-developers.getmondo.co.uk

You’ll need a separate account and you’ll need to use the staging developer system too. I think you might need to chat with one of the Mondo engineers to get access.

More info:

Thanks for this info. Just what I was looking for!

Hello,

Just to add to this, an easy way to simulate webhooks is to look at the typical request body of a webhook, and setup your favourite HTTP client to fire off a post request in that format.

I use Paw, and have setup the Ids to get a random unique value, as well as the merchant names, etc.

In general the webhooks payload looks to be almost the same as transactions, except it has an extra wrapper around it:

{
type: "This is the event type",
data: {} //transaction object
}

HTH!

Danny