Execute one-click payment
API endpoint (POST) |
---|
https://api.maibmerchants.md/v1/execute-oneclick |
Request parameters (body)
Parameter | Required | Type | Description |
---|---|---|---|
billerId | YES | string(UUID) | Card identifier saved in maib ecomm system. |
amount | YES | number(decimal) | Transaction amount. Format: X.XX E.g: 10.25 (currency=USD) means $10 and 25 cents. |
currency | YES | string(3) | Transaction currency (MDL/EUR/USD) |
clientIp | YES | string(15) | Customer IP |
language | NO | string(3) | maib ecomm checkout page language Allowed values: ro/en/ru If this parameter is not passed, the page will be displayed in English. |
description | NO | string(124) | Payment description. Displayed on maib ecomm checkout page |
orderId | NO | string(36) | Order ID generated by Merchant website/app. |
delivery | NO | number(decimal) | Shipping cost |
items | NO | array max. 50 items | The products or services ordered from the website/app. |
| no | string(36) | Product ID |
| no | string(128) | Product name |
| no | number(decimal) | Product price |
| no | integer(32) | Product quantity |
callbackUrl | NO | string(2048) | The link where the Merchant will receive the final response with the transaction status and data. If this parameter is not passed, its value will be taken from maibmerchants. |
okUrl | NO | string(2048) | The link where the Customer will be redirected if the transaction was successful. (GET request: okUrl + payId&orderId&billerId) If this parameter is not passed, its value will be taken from maibmerchants. |
failUrl | NO | string(2048) | The link where the Customer will be redirected if the transaction was failed. (GET request: failUrl + payId&orderId&billerId) If this parameter is not passed, its value will be taken from maibmerchants. |
Example
Intermediate response parameters
Parameter | Type | Description |
---|---|---|
result | Object | Object containing the transaction identifier and redirect link. |
| String | Transaction identifier assigned by maib ecomm |
| String | Order ID generated by Merchant website/app |
| String | The link to the maib ecomm checkout page where the Customer must be redirected to enter their card details (or pay via Apple Pay/Google Pay). |
ok | Boolean | Request/transaction processing status: true - no errors; false - an error occurred (error details will be in errors). |
errors | Array | Request/transaction processing errors. Errors table |
| String | Error code |
| String | Error description |
| Object | Object contains parameters with error details |
Example
Final response parameters
Parameter | Type | Description |
---|---|---|
result | Object | Object containing transaction data. |
| String | Transaction identifier assigned by maib ecomm. |
| String | Card identifier saved in maib ecomm system. |
| String | Order ID generated by Merchant website/app. |
| String | OK - successfully completed. |
| String | Transaction status code |
| String | Transaction status information message |
| String | 3-D Secure authentication result AUTHENTICATED - successfully authenticated. |
| String | RRN - Transaction ID generated by maib ecomm. |
| String | Approval Code - The transaction approval code generated by the card issuing bank. |
| String | Masked number card. |
| Number(decimal) | Transaction amount. Format: X.XX |
| String | Transaction currency (MDL/EUR/USD). |
signature | String | Response validation signature. |
Example
Last updated