What the webhook is for

When a buyer pays by card, they do so on Mangopay’s payment page. Your marketplace learns the outcome in two ways:

  • When the buyer comes back to your marketplace after paying.
  • Through the webhook: Mangopay calls your marketplace’s notification URL as soon as the payment succeeds or fails.

If the buyer closes the page before coming back, only the webhook tells your marketplace. Without it, Mangopay has taken the money but the order is never confirmed.

Copy the notification URL

  1. In the menu, under Configuration, click Settings, then Payment providers.
  2. Click MangoPay in the list: the Connect MangoPay screen opens.
  3. Copy the Notification URL shown under the fields. It reads https://your-domain/psp/hooks/mangopay/<number>.

Add the webhook at Mangopay

  1. Sign in to the Mangopay Hub, the Dashboard of your Mangopay account, on the API account you connected: Sandbox and production each have their own webhooks.
  2. Open Developers › Webhooks, then click Add webhook.
  3. Choose the PAYIN_NORMAL_SUCCEEDED event (payment succeeded), paste the notification URL and save.
  4. Do it again for the PAYIN_NORMAL_FAILED event (payment failed), with the same URL.

The Dashboard can send a test notification to check that the URL answers.

What happens next

Each time a payment succeeds or fails, Mangopay calls this URL. Kreezalid does not trust what the call says: it reads the payment again from Mangopay, then updates the order. A call received twice does not create two orders.

What your users see

Nothing visible: your buyers’ orders are confirmed even when they close the payment page too early.

Edge cases and limits

  • Only payments count: Kreezalid reads these two events and ignores the others. Sellers’ identity checks and bank wires need no webhook: Kreezalid reads them from Mangopay when it needs them.
  • A new domain name: the URL holds your domain. If your marketplace changes domain, copy the new URL and update both webhooks.
  • Answering fast: Mangopay expects an answer within 2 seconds. If your marketplace cannot read the payment at that moment, it answers “Retry later” and Mangopay sends the call again: every 10 minutes for the first hour, then every 8 hours for 3 days.