ChargeAmountNotification notification = new ChargeAmountNotification(
notificationString);
return processor.process(notification);
}
if (notificationString.indexOf("refund-amount-notification") > -1) {
RefundAmountNotificationProcessor processor = new RefundNotificationProcessorImpl(
mc);
RefundAmountNotification notification = new RefundAmountNotification(
notificationString);
return processor.process(notification);
}
if (notificationString.indexOf("chargeback-amount-notification") > -1) {
ChargebackAmountNotificationProcessor processor = new ChargebackAmountNotificationProcessorImpl(
mc);
ChargebackAmountNotification notification = new ChargebackAmountNotification(
notificationString);
return processor.process(notification);
}
if (notificationString.indexOf("authorization-amount-notification") > -1) {
AuthorizationAmountNotificationProcessor processor = new AuthorizationAmountNotificationProcessorImpl(
mc);
AuthorizationAmountNotification notification = new AuthorizationAmountNotification(
notificationString);
return processor.process(notification);
}
throw new Exception("Notification not recoginsed.");
}