<?php
/*
 * TEST SOAP ABO
 * 
 * */
$wsdl = 'https://test-ws.hipay.com/soap/subscription?wsdl';
$initArray = array(

  'wsLogin' => '4f8c3e80fd4e476f1e227c68fefdb3e5',
  'wsPassword' => '2f0c4099c4254f819bf7246d6202d192',
  'websiteId' => 345,
  'categoryId' => 225,
  'customerEmail' => 'customer@mail.com',
);

$options = array(
                'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP,
                'cache_wsdl' => WSDL_CACHE_NONE,
            );

            $client = new SoapClient($wsdl, $options);
            $result = $client->process($initArray + array(
                    'currency' => 'EUR',
                    'rating' => 'ALL',
                    'locale' => 'fr_FR',
                    'label' => 'test3.juanrene.com', 
                    'customerIpAddress' => '66.249.92.104', 
                    'merchantReference' => '5028737', 
                    'urlCallback' => 'http://test.myurl.com/callback.php', 
                    'urlAccept' => 'http://test.myurl.com/accept.php',
                    'urlDecline' => 'http://test.myurl.com/decline.php',
                    'urlCancel' => 'http://test.myurl.com/cancel.php',

                    'payments' => array(
                    	'initial' => array(
                            'name' => 'My Service',
                            'description' => 'Payement unique pour services',
                            'amount' => 250,
                            'periodType' => 'normal',
                            'recurrence' => array(
                                'frequency' => 0,
                                'duration' => 'managed',
                            ),
                        ),
                    ),
             	)
             );
var_dump($result);             
          
?>