$p->add_field('x_fp_hash', $fingerprint); if ($eshopoptions['status'] == 'live') { $p->authorizenet_url = 'https://secure.authorize.net/gateway/transact.dll'; // authorizenet url } else { $p->authorizenet_url = 'https://secure.authorize.net/gateway/transact.dll'; // testing authorizenet url } //only reqd for the developer $authorizenet = $eshopoptions['authorizenet']; $authemail = $authorizenet['email']; if (isset($authorizenet['developer']) && $authorizenet['developer'] == '1') { $p->authorizenet_url = 'https://test.authorize.net/gateway/transact.dll'; // devloper testing authorizenet url } $echoit .= $p->eshop_submit_authorizenet_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_authorizenet_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_authorizenet_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: //
$p->add_field('x_fp_hash', $fingerprint); if ($eshopoptions['status'] == 'live') { $p->authorizenet_url = 'https://secure.authorize.net/gateway/transact.dll'; // authorizenet url } else { $p->authorizenet_url = 'https://secure.authorize.net/gateway/transact.dll'; // testing authorizenet url } //only reqd for the developer $authorizenet = $eshopoptions['authorizenet']; $authemail = $authorizenet['email']; if (isset($authorizenet['developer']) && $authorizenet['developer'] == '1') { $p->authorizenet_url = 'https://test.authorize.net/gateway/transact.dll'; // devloper testing authorizenet url } $echoit .= $p->eshop_submit_authorizenet_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_authorizenet_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_authorizenet_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: //