Added js error checking to manual payment process

Added js error checking to manual payment process