1 - Créer le lien de paiement
Étape 1 : Créer un lien de paiement
Une URL unique qui redirige vos clients vers une page de paiement sécurisée.
Le lien de paiement est une URL qui affiche la page de paiement en ligne. L’URL de base à invoquer pour initier le paiement dépend de l’environnement utilisé. Voici un exemple de structure d’URL permettant à votre client de démarrer un paiement :
Structure de l’URL :
Required Fields:
Field Name
Type
Description
applicationId
String
The merchant application identifier.
invoice[id]
String
The unique identifier for the invoice.
invoice[customerId]
String
The customer identifier (email recommended).
invoice[totalAmount]
Float
Total amount for the invoice.
invoice[totalAmount]
String
Currency (ISO 4217 format, e.g., XOF).
invoice[issuedAt]
String
Invoice issue date (ISO 8601 format).
invoice[dueDate]
String
Invoice due date (ISO 8601 format).
invoice[expiresAt]
] (Optional)
String
The date when the invoice will expire (ISO 8601 format)
description
String
A description for the payment.
signature
String
Signature generated from the data.
callbackUrl
(optional)
String
URL for receiving IPN notifications.
redirectUrl
(optional)
String
URL for customer redirection after payment.
Example Payment Link:
Generate a Signature (PHP):
To generate a payment signature you must combine the following payment informations : application.id
,invoice.id
, invoice.customerid
, invoice.totalAmount.amount
, invoice.totalAmount.currency
andapplication.secret
.
The identifier and secret of the application can be retrieved from your administration console.
Dernière mise à jour