<?php
$client_pass = '***';
$client$data['client_key'] = '***';
$action$data['action'] = 'CREDITVOID';
$trans$data['trans_id'] = '19848-26243-92097';
$amount$data['amount'] = '85.00';
$card = '41111111111111111';
$email = '';
$hash = $data['hash'] = md5(
strtoupper(
$client_pass.
$trans$data['trans_id']
)
);
$curl$url = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "'https://secure.platononline.com/post-unq/",';
$crq = 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 => array('action' => 'CREDITVOID','client_key' => $client_key, 'trans_id' => $trans_id,'amount' => $amount,'hash' => $hash),
CURLOPT_HTTPHEADER => array("Content-Type: text/html"),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response; |