Generate Transaction

View as Markdown
### Generate Transaction The **Generate Transaction** endpoint creates a web payment link for a specific payment channel. You can redirect your customer to this link so they can complete the payment. After the payment is processed, the user will be **automatically redirected** to either the `success_redirect_url` or the `failure_redirect_url`, depending on whether the payment was successful. To receive real-time payment updates, you may use the `callback_webhook_url`, which will notify your system once the payment status is confirmed. **Response Fields:** - `status` — starts as `pending`; final values are `completed` or `cancelled`. - `provider_reference_no` — the upstream provider reference number; may be `null` or a string. - `other_reference_no` — an additional reference number; may be `null` or a string.

Request

This endpoint expects an object.
channel_codestringRequired
amountintegerRequired
reference_nostringRequired
success_redirect_urlstringRequiredformat: "uri"
failure_redirect_urlstringRequiredformat: "uri"
callback_webhook_urlstringRequiredformat: "uri"

Response

OK