Example #1
0
        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>.
 */
function process_request_received_response($google_response)
{
    // Do nothing.
}
/**
 * Process an <error-response>.
Example #2
0
        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);
        process_risk_information_notification($response);
        break;
    default:
        getLog('store.response.log')->log(print_r('12', true), Zend_Log::DEBUG);
        //$Gresponse->SendBadRequestStatus("Invalid or not supported Message");
        break;
}
exit(0);
function process_new_order_notification($response)
{
    $transaction_id = $response['new-order-notification']['google-order-number']['VALUE'];
    $params = array();
    $params = $response['new-order-notification']['shopping-cart']['merchant-private-data'];
    foreach ($params as $key => $value) {
        $params[$key] = $value['VALUE'];
    }
Example #3
0
        $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)
{
}
function process_error_response($Gresponse)
{
}
function process_diagnosis_response($Gresponse)
{
}