GenericValue order = findGoogleOrder(delegator, orderId);
if (order != null) {
MerchantInfo mInfo = getMerchantInfo(delegator, getProductStoreFromOrder(order));
if (mInfo != null) {
String externalId = order.getString("externalId");
AuthorizeOrderRequest aor = new AuthorizeOrderRequest(mInfo, externalId);
try {
aor.send();
} catch (CheckoutException e) {
Debug.logError(e, module);
}
}
}