initiate_payment
Initiate a payment through WariMCP and receive a checkout URL to share with your customer.
Instructions
Initiate a payment through any configured WariMCP provider. Returns a checkout URL for the customer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount in whole currency units (e.g. 5000 for 5000 XOF) | |
| currency | No | ISO currency code: XOF, XAF, CDF, GNF | XOF |
| provider | No | Payment provider: cinetpay, wave, mock | cinetpay |
| returnUrl | No | Redirect URL after payment | |
| callbackUrl | No | Your webhook URL for payment notifications | |
| description | No | Payment description shown to customer | Payment |
| customerName | Yes | Full customer name | |
| customerEmail | No | Customer email | |
| customerPhone | Yes | Phone in international format: +2250707070707 | |
| idempotencyKey | Yes | Unique key to prevent duplicate payments |