Developer Documentation

Everything you need to integrate DiamanoPay into your applications

Prerequisites

Before integrating DiamanoPay, ensure you have:

  • Created a DiamanoPay account
  • Generated API credentials from your dashboard
  • Reviewed our security guidelines

Environments

Production

Live

Live environment for real transactions

https://api.diamanopay.com

Payment Page

The simplest way to integrate DiamanoPay

  • No frontend implementation needed
  • Automatic updates and improvements
  • Simplified integration process
  • Consistent user experience

CMS Plugins

Ready-to-use plugins for popular platforms

SDKs

Official libraries for popular languages

Mobile Testing App

Use our mobile testing app to simulate Wave and Orange Money QR code scanning in the sandbox environment.

Getting Started with Authentication

To authenticate your API requests, you'll need to obtain an access token using your client credentials.

Request

POST /oauth2/token
Content-Type: application/x-www-form-urlencoded

client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET&grant_type=client_credentials

Response

{
  "accessToken": "eyJhbGciOiJIUzI1NiIs...",
  "accessTokenExpiresAt": "2024-03-21T15:00:00Z",
  "refreshToken": "def502...",
  "refreshTokenExpiresAt": "2024-04-21T15:00:00Z"
}