case "merchant-calculation-callback": // if (MODULE_PAYMENT_GOOGLECHECKOUT_MULTISOCKET == 'True') { // include_once ($curr_dir . '/googlecheckout/multisocket.php'); // process_merchant_calculation_callback($google_response, 2.7, false); // break; // } //} //case "merchant-calculation-callback-single" : { // set_time_limit(5); process_merchant_calculation_callback_single($google_response); break; case "new-order-notification": process_new_order_notification($google_response, $google_checkout); break; case "order-state-change-notification": process_order_state_change_notification($google_response, $google_checkout); break; case "charge-amount-notification": process_charge_amount_notification($google_response, $google_checkout); break; case "chargeback-amount-notification": process_chargeback_amount_notification($google_response); break; case "refund-amount-notification": process_refund_amount_notification($google_response, $google_checkout); break; case "risk-information-notification": process_risk_information_notification($google_response, $google_checkout); break; default: $google_response->SendBadRequestStatus("Invalid or not supported Message");
// break; // } // } // case "merchant-calculation-callback-single" : // { // set_time_limit(5); //process_merchant_calculation_callback_single($Gresponse); getLog('store.response.log')->log(print_r('5', true), Zend_Log::DEBUG); break; case "new-order-notification": getLog('store.response.log')->log(print_r('6', true), Zend_Log::DEBUG); process_new_order_notification($response); break; case "order-state-change-notification": getLog('store.response.log')->log(print_r('7', true), Zend_Log::DEBUG); process_order_state_change_notification($response); break; case "charge-amount-notification": getLog('store.response.log')->log(print_r('8', true), Zend_Log::DEBUG); process_charge_amount_notification($response); break; case "chargeback-amount-notification": getLog('store.response.log')->log(print_r('9', true), Zend_Log::DEBUG); // process_chargeback_amount_notification($Gresponse); break; case "refund-amount-notification": getLog('store.response.log')->log(print_r('19', true), Zend_Log::DEBUG); //process_refund_amount_notification($Gresponse, $googlepayment); break; case "risk-information-notification": getLog('store.response.log')->log(print_r('11', true), Zend_Log::DEBUG);
$sql = $db->bindVars($sql, ':couponCodeEntered', $coupons[0]['code']['VALUE'], 'string'); $coupon_result = $db->Execute($sql); // $_SESSION['cc_id'] = $coupon_result->fields['coupon_id']; $cc_id = $coupon_result->fields['coupon_id']; $db->Execute("insert into " . TABLE_COUPON_REDEEM_TRACK . "\n (coupon_id, redeem_date, redeem_ip, customer_id, order_id)\n values ('" . (int) $cc_id . "', now(), '" . $data[$root]['shopping-cart']['merchant-private-data']['ip-address']['VALUE'] . "', '" . (int) $_SESSION['customer_id'] . "', '" . (int) $insert_id . "')"); $_SESSION['cc_id'] = ""; } //Add the order details to the table // This table could be modified to hold the merchant id and key if required // so that different mids and mkeys can be used for different orders $db->Execute("insert into " . $googlepayment->table_order . " values (" . $insert_id . ", " . makeSqlString($data[$root]['google-order-number']['VALUE']) . ", " . makeSqlFloat($data[$root]['order-total']['VALUE']) . ")"); $_SESSION['cart']->reset(TRUE); $Gresponse->SendAck(); break; case "order-state-change-notification": process_order_state_change_notification($Gresponse, $googlepayment); break; case "charge-amount-notification": process_charge_amount_notification($Gresponse, $googlepayment); break; case "chargeback-amount-notification": process_chargeback_amount_notification($Gresponse); break; case "refund-amount-notification": process_refund_amount_notification($Gresponse, $googlepayment); break; case "risk-information-notification": process_risk_information_notification($Gresponse, $googlepayment); break; default: $Gresponse->SendBadRequestStatus("Invalid or not supported Message");