<?php
ini_set('soap.wsdl_cache_ttl', 1);
ini_set("soap.wsdl_cache_enabled", WSDL_CACHE_NONE);

$client = new SoapClient("https://psp.hipay.com/HiMediaPSP-war/MerchantWSDL",
    array('features' =>  SOAP_SINGLE_ELEMENT_ARRAYS));

$parameters = new stdClass();
$parameters->parameters = array(
   'wsLogin' =>  '4f8c3e80fd4e476f1e227c68fefdb3e5',
   'wsPassword' =>  '2f0c4099c4254f819bf7246d6202d192',
//   'websiteId' =>  '345', 
//   'merchantReference' =>  'juanchor@mail.com', 
//   'ipAddress' =>  '127.0.0.0', 
//   'httpUserAgent' =>  'juanchor@mail.com', 
//   'email' =>  'juanchor@mail.com', 
//   'firstName' =>  'juan', 
//   'lastName' =>  'ABELLA', 
//   'country' =>  'France', 
//   'province' =>  'Ile de France', 
//   'zipcode' =>  '75002', 
//   'town' =>  'Paris', 
//   'street1' =>  'rue vivienne', 
//   'street2' =>  'rue richelieu', 
   'cardHolder' =>  'Juan Abella', 
   'cardNumber' =>  '0076021428411461', 
//   'cardBrand' =>  'visa', 
   'cardExpiryMonth' =>  '12', 
   'cardExpiryYear' =>  '2014', 
   'cardCvv' =>  '123', 
	'subscription' => 0
//   'amount' =>  '20', 
//   'currency' =>  'EUR', 
//   'categoryId' =>  '225', 
//   'rating' =>  'all', 
//   'locale' =>  'fr_FR', 
//   'label' =>  'Test Hipay Label', 
//   'bankReportLabel' =>  'Test Hipay Bank Report', 
//   'manualCapture' =>  '0', 
//   'emailCallback' =>  'juanchor@mail.com', 
//   'urlCallback' =>  'http://sd-20614.dedibox.fr/~jabella/notif/index.php', 
//   'urlAccept' =>  'http://sd-20614.dedibox.fr/~jabella/notif/index.php', 
//   'urlDecline' =>  'http://sd-20614.dedibox.fr/~jabella/notif/index.php', 
//   'urlException' =>  'http://sd-20614.dedibox.fr/~jabella/notif/index.php', 
//   'urlCancel' =>  'http://sd-20614.dedibox.fr/~jabella/notif/index.php', 
);

$response = $client->getToken($parameters);

var_dump($response);

?>
