The Merchant will receive notifications on the Callback URL with the final response containing the status of the transaction.
Notifications are sent as HTTPS POST requests with data in JSON format.
Based on these notifications, the Merchant must provide the service/product to the Customer.
Callback URL is a mandatory setting for every project opened in maibmerchants, but it can also be sent in the request when initiating a payment (callbackUrl parameter).
To receive notifications responses from maib ecommfollowing server IP addresses must be allowed in the merchant server firewall: 91.250.245.70 / 91.250.245.71 / 91.250.245.142
The notification is considered to be processed successfully by the merchant if HTTP 200 OK status returned. Otherwise maib ecomm will repeat notification attempts with such time intervals: 10, 60, 300, 600, 3600, 43200, 86400 seconds.
Example of receiving notifications on Callback URL (PHP)
The Signature Key is available after activating the Project in maibmerchants.
Signature validation:
Example of notification (final response) on Callback URL:
Sort the data in the result object according to the alphabetical order of the parameters. Example:
Concatenate parameter values using the ":" sign with the Signature Keyappended to the end. Example:
Generate the hash of this string using the SHA256function (binary format). Example:
Base64 encode the received hash. Example:
Compare the generated signature with the value of the signature parameter in the notification and if they match the signature will be considered valid (the received data is authentic and intact).