<?php
// STEP 1 : soap flow options
$options = array(
'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP,
'cache_wsdl' => WSDL_CACHE_NONE,
'soap_version' => SOAP_1_1,
'encoding' => 'UTF-8'
);
// STEP 2 : Soap client initialization
$client = new SoapClient('https://test-ws.hipay.com/soap/transfer?wsdl', $options);
// STEP 3 : Soap call on direct method of transfer webservice
$result = $client->direct(array('parameters'=>array(
'wsLogin' => '4f8c3e80fd4e476f1e227c68fefdb3e5',
'wsPassword' => '2f0c4099c4254f819bf7246d6202d192',
'amount' => 10.50,
'recipientUsername' => 'juanchorene@gmail.com',
'publicLabel' => 'Virement de test public label',
'privateLabel' => 'Virement de test private label'
)));
// STEP 4 : Response
var_dump($result);
?>

?>
