Esempio n. 1
0
     $ExtraCost = number_format($ExtraCost, 2, ',', '');
     $OkUrl = urlencode($_POST['notify_url']);
     $GuaranteeOffered = '1';
     $MD5string = $payson['email'] . ":" . $Cost . ":" . $ExtraCost . ":" . $OkUrl . ":" . $GuaranteeOffered . $Key;
     $token = $MD5Hash = md5($MD5string);
     $checkid = md5($_POST['RefNr']);
     //
     if (isset($_COOKIE['ap_id'])) {
         $_POST['affiliate'] = $_COOKIE['ap_id'];
     }
     orderhandle($_POST, $checkid);
     if (isset($_COOKIE['ap_id'])) {
         unset($_POST['affiliate']);
     }
     $_POST['custom'] = $token;
     $p = new payson_class();
     if ($eshopoptions['status'] == 'live') {
         $p->payson_url = 'https://www.payson.se/merchant/default.aspx';
         // payson url
     } else {
         $p->payson_url = 'https://www.payson.se/testagent/default.aspx';
         // testing payson url
     }
     $echoit .= $p->eshop_submit_payson_post($_POST);
     //$p->dump_fields();      // for debugging, output a table of all the fields
     break;
 case 'process':
     // Process and order...
     // There should be no output at this point.  To process the POST data,
     // the submit_payson_post() function will output all the HTML tags which
     // contains a FORM which is submited instantaneously using the BODY onload
Esempio n. 2
0
     $token = $MD5Hash = md5($MD5string);
     $checkid = md5($espost['RefNr']);
     //
     if (isset($_COOKIE['ap_id'])) {
         $espost['affiliate'] = $_COOKIE['ap_id'];
     }
     orderhandle($espost, $checkid);
     if (isset($_COOKIE['ap_id'])) {
         unset($espost['affiliate']);
     }
     /*
     		//necessary evil fix
     		$_SESSION['orderhandle']=true;
     */
     $espost['custom'] = $token;
     $p = new payson_class();
     if ($eshopoptions['status'] == 'live') {
         $p->payson_url = 'https://www.payson.se/merchant/default.aspx';
         // payson url
     } else {
         $p->payson_url = 'https://www.payson.se/testagent/default.aspx';
         // testing payson url
     }
     $echoit .= $p->eshop_submit_payson_post($espost);
     //$p->dump_fields();      // for debugging, output a table of all the fields
     break;
 case 'process':
     // Process and order...
     // There should be no output at this point.  To process the POST data,
     // the submit_payson_post() function will output all the HTML tags which
     // contains a FORM which is submited instantaneously using the BODY onload