initialize_payment
Start a CinetPay web payment and receive a redirect URL for the customer to complete mobile money payment. Requires transaction, customer, and callback data.
Instructions
Initialize a new CinetPay web payment. Returns a payment URL to redirect the customer to.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"country": "<country>",
"amount": "<amount>",
"currency": "<currency>",
"merchant_transaction_id": "<merchant_transaction_id>",
"designation": "<designation>",
"client_email": "<client_email>",
"client_first_name": "<client_first_name>",
"client_last_name": "<client_last_name>",
"notify_url": "<notify_url>",
"success_url": "<success_url>",
"failed_url": "<failed_url>"
},
"name": "initialize_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Payment amount in the smallest currency unit (integer, e.g. 1000 = 1000 XOF) | |
| channel | No | Payment channel: PUSH, OTP, or QRCODE (default: PUSH) | |
| country | Yes | Country code (e.g. CI, SN) | |
| currency | Yes | Currency code: XOF, XAF, GNF, CDF, or USD | |
| failed_url | Yes | Redirect URL after failed payment | |
| notify_url | Yes | Webhook URL for payment status notifications | |
| designation | Yes | Payment description shown to the customer | |
| success_url | Yes | Redirect URL after successful payment | |
| client_email | Yes | Customer email address | |
| client_last_name | Yes | Customer last name | |
| client_first_name | Yes | Customer first name | |
| merchant_transaction_id | Yes | Unique transaction ID from your system (max 30 chars) |