Payment capture
API endpoint (POST) |
---|
https://api.maibmerchants.md/v1/complete |
Request parameters (body)
Parameter | Required | Type | Description |
---|---|---|---|
payId | YES | String | The identifier of the transaction that has been authorized and must be completed. |
confirmAmount | NO | Number (decimal) | Amount to be debited from Customer's bank account. Format: X.XX E.g: 10.25 (currency=USD) means $10 and 25 cents. It can be less than or equal to the amount that was previously put on hold. If this parameter is not present, the entire previously put on hold amount will be debited. |
Example
Response parameters
Parameter | Type | Description |
---|---|---|
result | Object | Object containing transaction data. |
| String | Transaction identifier assigned by maib ecomm. |
| String | Order ID generated by Merchant website/app. |
| String | OK - successfully completed. |
| String | Transaction status code |
| String | Transaction status information message |
| 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) | Amount debited from Customer's bank account. Format: X.XX |
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
Last updated