Next.js QOSIC Pay Integration Demo (WIP)
This repository demonstrates how to integrate QOSIC Pay (🇹🇬) into a Next.js 14 application. It covers the following features:
- Initiating payments via Moov Money (Flooz) and T-money.
- Handling payment confirmations through SMS or USSD.
- Receiving callbacks from QOSIC for payment status updates.
- Node.js (v18+)
- Next.js (v14)
- QOSIC API credentials (ClientID, username, password)
- Clone the repository:
git clone https://github.com/gausoft/next-ts-qosic-pay.git cd next-ts-qosic-pay - Install dependencies:
npm i
- Create a
.env.localfile in the root of the project and configure your QOSIC API credentials:QOSIC_BASE_URL="https://api.qosic.net" QOSIC_CLIENTID="YOUR_CLIENT_ID" QOSIC_ACC_USERNAME="YOUR_CLIENT_USERNAME" QOSIC_ACC_PASSWORD="YOUR_CLIENT_PASSWORD"
- Running the Project
npm run dev
Open http://localhost:3000 with your browser to see the result.
This project is licensed under the MIT License.