$apikey, ‘cpm_amount’ => $cpm_amount, ‘cpm_custom’ => $cpm_custom, ‘cpm_site_id’ => $cpm_site_id, ‘cpm_version’ => $cpm_version, ‘cpm_currency’ => $cpm_currency, ‘cpm_trans_id’ => $cpm_trans_id, ‘cpm_language’ => $cpm_language, ‘cpm_trans_date’ => $cpm_trans_date, ‘cpm_page_action’ => $cpm_page_action, ‘cpm_designation’ => $cpm_designation, ‘cpm_payment_config’ => $cpm_payment_config ); // use key ‘http’ even if you send the request to https://… $options = array( ‘http’ => array( ‘method’ => “POST”, ‘header’ => “Content-Type: application/x-www-form-urlencoded\r\n”, ‘content’ => http_build_query($getSignatureData) ) ); $context = stream_context_create($options); $result = file_get_contents($signatureUrl, false, $context); if ($result === false) { /* Handle error */ \header($return_url); exit(); } // var_dump($getSignatureData); // echo(“\n”); $signature = json_decode($result); // var_dump($signature); ?> sylvain test
Procéder au payement