Wave Money

Collecter de l'argent via Wave Money

POST https://api.digitalpaye.com/v1/collecte/mobile-money

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <AccessToken>

X-Environment

Production

Request Body

Name
Type
Description

transactionId*

String

ID de la transaction

customer*

Object

Le client

payer*

String

Numéro de téléphone à débiter

currency*

String

Devise de la transaction. Devise disponible :

amount*

String

Montant de la transaction. Montant minimum : 100 XOF Montant Maximum : 1.000.000 XOF

operator*

String

WAVE_MONEY_CI

urlSuccess

String

Url success

errorUrl

String

Url error or return

Customer Data

Name
Type
Description

lastName*

String

Nom du client

firstName*

String

Prénom du client

phone*

String

Téléphone du client

email*

String

Email du client

address*

Object

Adresses

Address Customer

countryCode*

String

Code du pays du client CI

city

String

Ville du client

streetAddress

String

Adresse du client

{
    "statusCode": 202,
    "message": "Successful",
    "data": {
        "ref": "Y9BQ3LBBMX",
        "transactionId": "DIGITAL-23018182000",
        "currency": "XOF",
        "amount": "100",
        "fees": "1.5",
        "amountReceive": "98.5",
        "amountTotal": "100",
        "phone": "0777101308",
        "status": "PENDING",
        "typeTransaction": "collecte",
        "operator": "WAVE_MONEY_CI",
        "createdAt": "2024-10-11T09:34:30.000Z",
        "customer": {
            "id": "26b35534-3165-4143-8fff-ec2f70bb430c",
            "lastName": "GUEI",
            "firstName": "HELIE",
            "email": "[email protected]",
            "phoneNumber": "0777101308",
            "address": {
                "countryCode": "CI",
                "city": "Abidjan",
                "streetAddress": "Plateau Cocody"
            },
            "createdAt": "2024-10-11T07:07:59.000Z"
        },
        "waveLaunchUrl": "https://pay.wave.com/c/cos-1s4ed9jx022am?a=100&c=XOF&m=Digitalpaye%20%2A%20Digi"
    }
}
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.digitalpaye.com/v1/collecte/mobile-money',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "transactionId": "DIGITAL-23018182000",
    "customer": {
        "lastName": "GUEI",
        "firstName": "HELIE",
        "phone": "0777101308",
        "email": "[email protected]",
        "address": {
            "countryCode": "CI",
            "city": "Abidjan",
            "streetAddress": "Plateau Cocody"
        }
    },
    "payer": "0777101308",
    "amount": "100",
    "currency": "XOF",
    "errorUrl": "https://digitalpaye.com",
    "successUrl": "https://digitalpaye.com",
    "operator": "WAVE_MONEY_CI"
}',
  CURLOPT_HTTPHEADER => array(
    'X-Environment: Production',
    'Content-Type: application/json',
    'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb21wYW55SWQiOiI4NDM3ZGQxMy04OWFjLTQ1ZTEtYTdhYS1jOGJhMDk1ZDFiMjciLCJpYXQiOjE3Mjg2MzkxODMsImV4cCI6MTcyODYzOTc4M30.YB1TekRqMCub5soB0GAzWtt76AEPmhfh5-Xw3KFdLW0'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Mis à jour

Ce contenu vous a-t-il été utile ?