Is it possible to add AccountType into this bit at the end:
Code:
$submit_data = array(
'VPSProtocol' => '2.22',
'TxType' => $auth_type, // Transaction Type
'Vendor' => MODULE_PAYMENT_PROTX_DIRECT_VENDOR_NAME, // Vendor Login ID
'VendorTxCode' => $unique_transaction_id, // Unique Transaction ID
'Amount' => $currency_amount,
'Currency' => $currency_code,
'Description' => substr(STORE_NAME . ' - Zen Cart Order @ ' . date('Y-m-d H:i:s', time()), 0, 100),
'CardHolder' => substr($_POST['card_owner'], 0, 50),
'CardNumber' => $_POST['card_number'],
'ExpiryDate' => $_POST['card_expires'],
'CV2' => (isset($_POST['card_cvv']) ? $_POST['card_cvv'] : ''),
'CardType' => $_POST['card_type'],
'BillingAddress' => substr($billing_address, 0, 200),
'BillingPostCode' => substr($billing_postcode, 0, 10),
'CustomerName' => substr($order->customer['firstname'] . ' ' . $order->customer['lastname'], 0, 100),
'ContactNumber' => substr($order->customer['telephone'], 0, 20),
// 'ContactFax' => '',
'CustomerEmail' => substr($order->customer['email_address'], 0, 255),
// 'GiftAidPayment' => '',
'ApplyAVSCV2' => $apply_avs_cv2,
'Apply3DSecure' => $apply_3d_secure,
'ClientIPAddress' => $_SERVER['REMOTE_ADDR']
);
but it only puts it in when a certain IP address is entering the order?
So;
Code:
if (getenv("REMOTE_ADDR") = 123.123.123.123) { echo 'AccountType' => 'M'; }else 'AccountType' => 'E'; }
Will that work?
Bookmarks