HiPay Professional – Displaying the payment page
Service endpoints
Request parameters
Full PHP example:
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://ws.hipay.com/soap/payment-v2?wsdl', $options);
// STEP 3 : Soap call on confirm method of manual-capture webservice
$result = $client->generate(array('parameters'=>array(
'wsLogin' => 'YOUR wsLogin',
'wsPassword' => 'YOUR wsPassword',
'categoryId' => 'xxx',
'websiteId' => 'YOUR websiteID',
'description' => 'Test HiPay',
'currency' => 'EUR',
'amount' => '',
'rating' => '',
'locale' => 'fr_FR',
'customerIpAddress' => '',
'manualCapture' => '0',
'executionDate' => '',
'customerEmail' => '',
'urlCallback' => '',
'urlAccept' => '',
'urlDecline' => '',
'urlCancel' => '',
'urlLogo'=> '',
'merchantReference' => 'test-123'
)));
// STEP 4 : Response
$url = $result->generateResult->redirectUrl;
echo "
Open page";
?>