Update to add support for custom "onSuccess" events. Added both redirect option and custom thank you message.