ILENPAY
Search
K

Konfirmasi

Api direct konfirmasi pembayaran
Hanya untuk transaksi type DIRECT
Jika respon sukses maka kami akan mengirimkan notifikasi melalui url webhook yang telah anda setting.
post
https://api.ilenpay.co.id
/v1/konfirmasi/pembayaran
Parameters
Header
Authorization*
String
Api Key
Body
sender
Int
Nomer pengirim pulsa
reff_id*
String
Responses
200: OK
Respon Sukses
200: OK
Respon Jika Status TRX PAID

Contoh Untuk PHP

<?php
$api_key = 'Production Key';
$reff_id = 'trx68164343'; // $_POST['reff_id'];
$sender = '081234567828'; // $_POST['sender'];
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_FRESH_CONNECT => true,
CURLOPT_URL => 'https://api.ilenpay.co.id/v1/konfirmasi/pembayaran',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HEADER => false,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => http_build_query(array(
'sender' => $sender,
'reff_id' => $reff_id
)),
CURLOPT_HTTPHEADER => array(
'Content-Type: application/x-www-form-urlencoded',
'Authorization: ' . $api_key
),
CURLOPT_FAILONERROR => false,
CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4
]);
$response = curl_exec($curl);
$error = curl_error($curl);
curl_close($curl);
print_r(empty($error) ? $response : $error);