getName()) { case 'merchant-calculation-callback': //uc_google_checkout_merchant_calculation($xml); break; case 'new-order-notification': uc_google_checkout_new_order($xml); break; case 'order-state-change-notification': uc_google_checkout_order_state_change($xml); break; case 'risk-information-notification': uc_google_checkout_accept_risk($xml); break; case 'charge-amount-notification': uc_google_checkout_charge_order($xml); break; case 'refund-amount-notification': uc_google_checkout_refund_order($xml); break; default: watchdog('google', 'Unknown notification document: @xml', array('@xml' => $input), WATCHDOG_ERROR); $output = uc_google_checkout_notification_acknowledgement($xml->{'serial-number'}); } }