0) { if (isset($_POST['amount'])) $_POST['amount'] = $_POST['amount'] * 100; $request_params = ''; // The order in the post_keys array is important! $post_keys = array('pos_id', 'order_id', 'session_id', 'amount', 'currency', 'test', 'language', 'client_ip', 'street', 'street_n1', 'street_n2', 'addr2', 'addr3', 'city', 'postcode', 'country', 'email', 'ba_firstname', 'ba_lastname', 'merchant_label'); foreach($post_keys as $key) { if (isset($_POST[$key]) && $_POST[$key] != '') { if ($request_params != '') $request_params.= '&'; $request_params.= $key.'='.$_POST[$key]; } } $string_for_control_data_sign = $request_params . pack("H*" , $secret_key); $string_for_control_data_sign = $request_params; $control = calculateControlData($secret_key, $string_for_control_data_sign); $request_params .= '&controlData=' . $control; ob_start(); header("Location: " . $action_url . "?".$request_params); ob_end_clean(); die(); } ?>

PolCard





Płatności