Exemplo n.º 1
0
        //}
        //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;
}
exit(0);
/**
 * Process a <request-received-response>.
 */
Exemplo n.º 2
0
        }
        //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");
        break;
}
exit(0);
function process_request_received_response($Gresponse)
{
}