Result Codes Reference
Checkout Result Codes
When handling the webhook response from MMG, the decrypted payload will contain a ResultCode and a ResultMessage. You must evaluate the ResultCode to determine whether to fulfill the customer’s order or mark it as failed.
Only fulfill orders when you receive a ResultCode of "0". Any other code indicates that the transaction did not complete successfully.
Status Codes Table
Use the following table to map the outcome of the checkout session:
Handling Edge Cases
- Missing Webhooks: If a user closes their browser before MMG can send the webhook, or if your server experiences downtime, you may miss the callback. It is highly recommended to implement a cron job or scheduled task that uses the Transaction Lookup API to check the status of any pending orders after a certain time period (e.g., 15 minutes).
- Duplicate Webhooks: Ensure your webhook handler is idempotent. If MMG sends the same
transactionIdtwice, your system should recognize that the order is already paid and gracefully ignore the duplicate request while still returning a200 OK.

