Connect Slack to Mondido

There exists many possibilities to send messages from Mondido to different services in connection with transactions. One popular way to keep track of both successful and failed transactions is to connect Mondido to Slack for easy surveillance. To follow the guide below you need a Slack-account and an account at Mondido, which you can easily register here https://access.mondido.com/register.

  1. Go to Slack to create an integration: Slack Apps. Enter a good name, like for example "MondidoSlack". Then select which Workspace you want your messages in.

  2. Now activate your Slack to send messages to your channel by clicking on "Incoming Webhooks".

  3. Activate the function by setting it to "On" in the right corner.

  4. Click on "Add Webhook to Workspace" to get the choice to select which channel that should receive the messages, for example #general .

  5. Copy the unique link that messages should be sent to, for example "https://hooks.slack.com/services/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".
  6. Go to Mondido to set up Webhooks here.
    Select to create a new Webhook template of type "Custom HTTP".

  7. Choose when it should be sent, for example "After Payment", and that it should be sent as "POST" and as "JSON".
    In the URL field you paste the link you got earlier from Slack. (Example: ”https://hooks.slack.com/services/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” .)

  8. Click on "Advanced options" and enter a JSON-message in the "Custom http body" box.
    Here you can chose how the transactions message will look like by using the Liquid Syntax.
    Example:
    {"text":"Hello, World! There was a payment with status {{transaction.status}},  for {{transaction.amount}} {{transaction.currency}}"}<br>
    	

    You can use almost all data that is available in the transaction in the message. Read more about the Liquid Syntax here: Liquid Syntax.

  9. Save by clicking on "CREATE NEW" to activate the Webhook.