Example #1
0
$htaccess = gc_get_configuration_value($config->htaccessAuthMode()) == 'True';
if ($htaccess) {
    $google_response->HttpAuthentication();
}
switch ($root) {
    case "request-received":
        process_request_received_response($google_response);
        break;
    case "error":
        process_error_response($google_response);
        break;
    case "diagnosis":
        process_diagnosis_response($google_response);
        break;
    case "checkout-redirect":
        process_checkout_redirect($google_response);
        break;
        // TODO(eddavisson): Why are these commented out?
        // TODO(eddavisson): If we re-activate this, need to move to new configuration system.
    // TODO(eddavisson): Why are these commented out?
    // TODO(eddavisson): If we re-activate this, need to move to new configuration system.
    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);
Example #2
0
// Check if is CGI install, if so .htaccess is needed
if (MODULE_PAYMENT_GOOGLECHECKOUT_CGI != 'True') {
    $Gresponse->HttpAuthentication();
}
switch ($root) {
    case "request-received":
        process_request_received_response($Gresponse);
        break;
    case "error":
        process_error_response($Gresponse);
        break;
    case "diagnosis":
        process_diagnosis_response($Gresponse);
        break;
    case "checkout-redirect":
        process_checkout_redirect($Gresponse);
        break;
    case "merchant-calculation-callback":
        //      if (MODULE_PAYMENT_GOOGLECHECKOUT_MULTISOCKET == 'True') {
        //        include_once ($curr_dir . '/googlecheckout/multisocket.php');
        //        process_merchant_calculation_callback($Gresponse, 2.7, false);
        //        break;
        //      }
        //    }
        //  case "merchant-calculation-callback-single" :
        //    {
        // 			set_time_limit(5);
        process_merchant_calculation_callback_single($Gresponse);
        break;
    case "new-order-notification":
        //	    $zco_notifier->notify('NOTIFY_CHECKOUT_PROCESS_BEGIN');