Wave Money

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

Headers

Request Body

{
    "code_status": 202,
    "status": "PENDING",
    "message": "PAYMENT_IS_PENDING",
    "data": {
        "linkpayment_id": null,
        "ref": "RCI-DIGITALP-7829",
        "operator_id": "cos-1nr8cr2b02282",
        "transaction_id": "TICK-9210009010219",
        "cardId": null,
        "number_user": "2250777101308",
        "name_user": "GUEI HELIE",
        "email_user": null,
        "country_user": "CI",
        "currency": "XOF",
        "amount": "310",
        "fees": "6.2",
        "amount_receive": "303.8",
        "amount_total": "310",
        "status": "PENDING",
        "type_transaction": "collecte",
        "type_payment": "WAVE_CI",
        "date": "2024-04-26 08:01:58",
        "date_update": null,
        "wave_launch_url": "https://pay.wave.com/c/cos-1nr8cr2b02282?a=310&c=XOF&m=DigitalPaye"
    }
}
<?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 =>'{
    "code_country": "CI",
    "operator": "WAVE_CI",
    "currency": "XOF",
    "url_success": "https://digitalpaye.com",
    "url_error": "https://digitalpaye.com",
    "url_return": "https://digitalpaye.com",
    "customer_id": "0777101308",
    "amount": 310,
    "name_user": "GUEI HELIE",
    "transaction_id": "10180120"
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJjb21wYW55X2lkIjoiMSIsImlhdCI6MTcxMjM0MjYzNCwiZXhwIjoxNzEyMzQzMjM0fQ.Po6DP1O-sgpkB-LWYtiybfGwuf70_wLUgvzS-2RN544'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Dernière mise à jour