예제 #1
0
         $_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
     // attribute.  In other words, don't echo or printf anything when you're
     // going to be calling the submit_payson_post() function.
     // This is where you would have your form validation  and all that jazz.
     // You would take your POST vars and load them into the class like below,
     // only using the POST values instead of constant string expressions.
     // For example, after ensureing all the POST variables from your custom
     // order form are valid, you might have:
     //
예제 #2
0
         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
     // attribute.  In other words, don't echo or printf anything when you're
     // going to be calling the submit_payson_post() function.
     // This is where you would have your form validation  and all that jazz.
     // You would take your POST vars and load them into the class like below,
     // only using the POST values instead of constant string expressions.
     // For example, after ensureing all the POST variables from your custom
     // order form are valid, you might have:
     //