Payment
The Payments API allows you create and manage payments on your integration.
The Payments API allows you create and manage payments on your integration.
Init a charge for customer
Payment channel
Phone number to charge
payment email (for non Mobile Money payment)
Cardholder name (For card processing).
Card Number (For card processing).
Card Expire date (MM/YY)
Card Verification Code
Successful response
Unauthorized
curl --request POST \
--url https://api.notchpay.co/payments/__REFERENCE__ \
--header 'Content-Type: application/json' \
--data '{
"channel": "cm.mobile",
"phone": "237656019261"
}'
Successful response
Cancel a payment.
Successful response
curl --request DELETE \
--url https://api.notchpay.co/payments/__REFERENCE__
Successful response
The Notch Pay API is designed to provide you with a simple and powerful integration with our payment platform. Here are the fundamental principles that guide our API:
Our API is built on the REST (Representational State Transfer) architecture, providing you with intuitive and predictable URLs for interacting with Notch Pay resources (payments, customers, transactions, etc.).
Requests: Requests are sent in the application/json format for maximum compatibility. Responses: All responses are returned in JSON format, clearly structured for easy processing in your application.
We use standard HTTP response codes to indicate the success or failure of requests, providing you with accurate information about the outcome of each interaction.
Authentication is ensured through unique API keys that you obtain when you sign up. These keys ensure that only authorized applications can access your Notch Pay account.
Our API offers a comprehensive test mode that allows you to develop and test your integration without affecting your live data or interacting with banking networks.
We regularly update our API with new features and improvements. Check our documentation regularly to stay informed about the latest developments.
Our API handles resources individually. Each request should focus on a single resource at a time to ensure the consistency and reliability of operations.
Ready to get started? Explore our detailed integration guides and comprehensive API references to start accepting payments seamlessly with Notch Pay.
Code Examples: Provide concrete code examples in different languages to help developers quickly integrate the API.
Support Channels: Clearly indicate how developers can get help if needed (email, forum, etc.).
The Payments API allows you create and manage payments on your integration.
This endpoint allows you to make a payment.
amount to charge to customer
Three-letter ISO currency code.
Information about customer
Collect page customization
Unique reference for your payments
Payment description.
URL to redirect after payment processing.
The currency with which the payment information will be displayed to your customer.
Only the payment methods available for this country will be available on the payment page.
Successful response
Unauthorized
Conflict Reference already existing
Validation error
curl --request POST \
--url https://api.notchpay.co/payments \
--header 'Content-Type: application/json' \
--data '{
"currency": "XAF",
"amount": 100,
"reference": "your_unique_reference_id_479"
}'
{
"status": "Accepted",
"message": "Payment initialized",
"code": 201,
"transaction": {
"amount": 100,
"amount_total": 100,
"sandbox": false,
"fee": 0,
"converted_amount": 100,
"customer": "cus.HinOxDlooNXjMBPq",
"description": "Eaque sed dolores earum sunt ipsa consequatur veniam quia.",
"reference": "trx.9aDtumnnMMBEw1ZCuj7IFWzc",
"merchant_reference": "your_unique_reference_id_479",
"trxref": "your_unique_reference_id_479",
"status": "pending",
"currency": "XAF",
"locked_currency": "XAF",
"callback": "https://jada.info",
"geo": "127.0.0.1",
"created_at": "2024-06-17T07:27:11.000000Z"
},
"authorization_url": "https://pay.notchpay.co/IOvSUHqMIWGqnp7ScbYpRLuNZuytePNGmssjVoIjr570lLcMOHeU4ymcnurlEPtyvJ2DqozzUVdCMDyDb2aDyOv6AlZG1zAgX2o9GuYwCpctOkqxMJLMw1v4YFjmTM5BA4ILL2HKq8BixOm0N4BDKXqcfoI4sTj000wKVXhk117uBOgjN96S3kE8Pl48a9wA"
}
Successful response