globals('core.eol'); $order = $this->globals('ecom.order_summary'); // +-- // | Printable form instructions. // +-- $instructions = "After verifying your order information and clicking the 'Continue' button, you will be directed to our online processing partner's secure site to enter your payment information. Once your payment information is entered and verified, you will be directed back to this web site for your order confirmation."; // +-- // | Create our relay URL. // +-- $url_relay = $this->globals('core.url_ssl') . '/utilities/ecomrelay.php'; // +-- // | Set up the olpform array. // +-- $olpform = array('url' => 'https://secure.internetsecure.com/process.cgi', 'button' => 'Continue', 'fields' => array()); // +-- // | Create the HIDDEN fields for the form. // +-- $olpform['fields']['HIDDEN'][] = array('name' => 'MerchantNumber', 'value' => $order['gateway']['userid']); $olpform['fields']['HIDDEN'][] = array('name' => 'OrderNumber', 'value' => $order['order']['id']); $olpform['fields']['HIDDEN'][] = array('name' => 'OrderTotal', 'value' => $order['order']['ordertotal']); $olpform['fields']['HIDDEN'][] = array('name' => 'xxxName', 'value' => $order['order']['fname'] . ' ' . $order['order']['lname']); $olpform['fields']['HIDDEN'][] = array('name' => 'xxxAddress', 'value' => $order['order']['addone'] . ' ' . $order['order']['addtwo']); $olpform['fields']['HIDDEN'][] = array('name' => 'xxxCity', 'value' => $order['order']['city']); $olpform['fields']['HIDDEN'][] = array('name' => 'xxxProvince', 'value' => $order['order']['stateabbus']); $olpform['fields']['HIDDEN'][] = array('name' => 'xxxCountry', 'value' => $order['order']['countryabb']); $olpform['fields']['HIDDEN'][] = array('name' => 'xxxPostal', 'value' => $order['order']['postalcode']); $olpform['fields']['HIDDEN'][] = array('name' => 'xxxEmail', 'value' => $order['order']['email']); $olpform['fields']['HIDDEN'][] = array('name' => 'xxxPhone', 'value' => $order['order']['phone']); $olpform['fields']['HIDDEN'][] = array('name' => 'language', 'value' => 'English'); $olpform['fields']['HIDDEN'][] = array('name' => 'ReturnCGI', 'value' => $url_relay); $olpform['fields']['HIDDEN'][] = array('name' => 'xxxVar1', 'value' => 'COMPLETE'); $olpform['fields']['HIDDEN'][] = array('name' => 'xxxVar2', 'value' => $order['order']['id']); $olpform['fields']['HIDDEN'][] = array('name' => 'xxxVar3', 'value' => $order['order']['ordertotal']); $olpform['fields']['HIDDEN'][] = array('name' => 'Products', 'value' => $order['order']['ordertotal'] . '::1::001::Online Order::{US}'); // +-- // | Create the DISPLAY fields for the form. // +-- $olpform['fields']['DISPLAY'][] = array('type' => 'PAYFORMCONTINUE', 'params' => array('name' => 'ecom_continue', 'required' => 1, 'display' => 'Payment Information', 'desc' => $instructions, 'option' => 'Enter Payment Information')); // +-- // | Globalize the $olpform array and return. // +-- $this->globals('ecom.olpform',$olpform); ?>