Issue #469 - Added condition to check if the event fire for charge.succeeded or charge.captured in the doChargeSucceeded() function.