Introduction

Alexpay provides a seamless way to accept payments across multiple channels, including cards and mobile money. Whether you're integrating payments into a website, mobile application, or a custom checkout flow, our flexible APIs give you complete control while ensuring secure and smooth transactions.

Alexpay supports two payment completion flows, depending on your preferred integration style:

1. Checkout flow (Redirect flow)

Use this flow if you want Alexpay to handle the entire payment UI/UX.

Steps:

  1. Initiate payment: Call the Initiate Payment endpoint to create a new transaction.

  2. Redirect Customer: Extract the payment_link returned in the response.

  3. Customer Completes Payment: Redirect the customer to the Alexpay-hosted checkout page where they complete the transaction.

2. Non‑Checkout Flow (Direct API Flow)

Use this flow if you want to handle the checkout UI yourself and complete payments programmatically via API.

Steps:

  1. Initiate Payment:

    • Call the Initiate Payment endpoint to begin the transaction.

    • The response includes a payment_reference.

  2. Complete Payment: Call the Complete Payment endpoint, passing the payment_reference returned during initiation.

Last updated