Retail
Layanan untuk membuat Retail seperti Indomaret atau Alfamart.
Name
Desc
Note
Name
Desc
Note
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api-sandbox.ipaymax.com/transaction/create/retail',
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 =>'{
"partner_reference_number": "TRX12341232144",
"bank_code": "ALFAMART",
"amount": 10000,
"expired": "20241102230000",
"remark": "Coba kak",
"customer_id": "31857118",
"customer_name": "Sahabat Ipaymax",
"customer_phone": "08123456789",
"customer_email": "[email protected]",
"redirect_url": ""
}',
CURLOPT_HTTPHEADER => array(
'X-CLIENT-ID: 3346754028',
'X-CLIENT-SECRET: sandbox-ipaymax',
'X-SIGNATURE: dc1aeb9a2c16f235d47bae5a155d89e183059958b649ee6b59067d4656fecc9f',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Nama
Kode
Last updated