<?php
 $data="0+80HCDWPtZDyyc3gX6QeU4Oqb1z1+Uy0MPlce6aROX1K0UzmExwO29uClOyXAfHgV7V6a2PJLwhiB5RIqfM6A7Q6UM/MD2RE8i5s3CtkxNZQIBX+vAqk+YOfqG9UE82ftHRRxVOFg8c6GS2gpaB4/UFGV11/yaxnh6aJCh5ph+Yjw8J4a73QDqW6v8R/rX6lUx4rwyiFWl995w2/GGRVWAvAlj/2xaXVO8CQXkPVNQBZqUX5gp/lswQ35T7sPgJjATAEPIR72Tz1jlG1d9bwNwUoDyIEWzAwzdTu9nCaP4r0SXjmY4z0Qq8ZiA00Ci8LI3WH31V9i0pOPGe0H7hCT6c3w3Gp0BU1t1QGTPHPgBirMG9JIu2Lynv8u/GZBfl+iXZYVo3ZPFDNCD3w7KVk0fM7yNqGfzQ0T1etZD6JTgybpa5x6S3p7O9J5y/seuvf7ymzoNR4ubTI82YDjUYfA==";

echo $url = 'https://bouat.mrlpay.com/pcpos4/TransactionRequest.php?source=629';
//$data = $encrypt; //array('field1' => 'value', 'field2' => 'value');
$options = array(
        'http' => array(
        'header'  => "Content-type: application/json\r\n",
        'method'  => 'POST',
        'content' => $data,
    )
);

 $context  = stream_context_create($options);
 $result = file_get_contents( $url, false, $context );
 $obj = json_decode($result,true);
echo $obj['data'];
echo decrypt($obj['data']);
//echo $obj->['0'];
 //echo decrypt("FmnkbrojzJmPhvR\/gE06xaTUleH2NuCAnCwjhzlUBiOkQW\/novZVnTokLtQBeGmnci9cU7okYqK9\/yUacTJIe0J66rMDg3iqXHhj6LFgFiB+76+f0pILpNEISLY7HOXD9o6ggeHETCSAM0gGloDFOgb08GArkX61wB5vOmPiCMF2JCl0krTpB2Z0P1NxbY2AyMWdGsiBFcJir6FWTRlU\/9ZnOooPTFGnuh9I2\/dJAVplXCKJlVcRE7yJ7jWImx6IstPRVKuI4Kqj+HnDogYL4Q==");
 
 
 function decrypt($data){

 

$cipher_algo = 'AES-256-CBC';

$key = 'X5mUl3J1jneCd0adISoHWDTj7U8Rnhvd';  //place key
$iv='1111111245683783';      // place iv

 

$decrypted_data = openssl_decrypt($data, $cipher_algo, $key,0, $iv);

 

return $decrypted_data;

}

?>