Moov Mobile Money
Collecter de l'argent via Moov Mobile Money
POST
https://api.digitalpaye.com/v1/collecte/mobile-money
Headers
Content-Type
application/json
Authorization
Bearer <
AccessToken>
X-Environment
Production
Request Body
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
FLOOZ_MONEY_CI
Customer Data
Customer Data
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
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": "2RXSYFAAOC",
"transactionId": "DIGITAL-79110123018182",
"currency": "XOF",
"amount": "600",
"fees": "9",
"amountReceive": "591",
"amountTotal": "600",
"phone": "0151737308",
"status": "PENDING",
"typeTransaction": "collecte",
"operator": "FLOOZ_MONEY_CI",
"createdAt": "2024-10-11T07:03:16.000Z",
"customer": {
"id": "281ed0f9-16e8-40ac-bd9d-3f91632dd7f2",
"lastName": "GUEI",
"firstName": "HELIE",
"email": "[email protected]",
"phoneNumber": "0504675930",
"address": {
"countryCode": "CI",
"city": "Abidjan",
"streetAddress": "Yopougon, Niangon"
},
"createdAt": "2024-10-10T07:31:22.000Z"
},
}
}
<?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": "2ed1aff8-1925-4c2f-b5e1-bc2cc75cf0a9",
"customer": {
"lastName": "GUEI",
"firstName": "HELIE",
"phone": "0777101308",
"email": "[email protected]",
"address": {
"countryCode": "CI",
"city": "Abidjan",
"streetAddress": "Plateau Cocody"
}
},
"payer": "0151737308",
"amount": "100",
"currency": "XOF",
"operator": "FLOOZ_MONEY_CI"
}',
CURLOPT_HTTPHEADER => array(
'X-Environment: Production',
'Content-Type: application/json',
'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb21wYW55SWQiOiI4NDM3ZGQxMy04OWFjLTQ1ZTEtYTdhYS1jOGJhMDk1ZDFiMjciLCJpYXQiOjE3NDMxNDU4NjksImV4cCI6MTc0MzE0NjQ2OX0.jC9DCjwONFbjiGkSstuJPx0RMQuwISx20qj9MEE8gNA'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Dernière mise à jour
Cet article vous a-t-il été utile ?