For whatever reason, I was scouring the payment modules to see what shopping_cart class constructs are used and I came across the following in /includes/modules/payment/paypaldp.php:
Code:
function get3DSecureLookupResponse($lookup_data_array) {
// Set some defaults
if (!isset($lookup_data_array['order_desc']) || $lookup_data_array['order_desc'] == '') $lookup_data_array['order_desc'] = 'Zen Cart(R) Transaction';
if (!isset($lookup_data_array['order_number']) || $lookup_data_array['order_number'] == '') $lookup_data_array['order_number'] = zen_session_id();
// format the card expiration
$lookup_data_array['cc3d_exp_year'] = (strlen($lookup_data_array['cc3d_exp_year']) == 2 ? '20' : '') . $lookup_data_array['cc3d_exp_year'];
// get the ISO 4217 currency
$iso_currency = $this->getISOCurrency($lookup_data_array['currency']);
// format the transaction amounts
$raw_amount = $this->formatRawAmount($lookup_data_array['txn_amount'], $iso_currency);
// determine the appropriate product code for submission
$prodCode = FALSE;
if (isset($_SESSION['cart'])) {
if ($_SESSION['cart']->get_cart_type == 'virtual') {
$prodCode = 'DIG';
} else {
$prodCode = 'PHY';
}
}
The variable highlighted in red doesn't exist in the shopping_cart class; the line probably should read:
Code:
if ($_SESSION['cart']->get_content_type() == 'virtual') {
Bookmarks