I have some Charge payments on my website, and I have registered the onCharge event in my plugin, like so:
public function init()
{
parent::init();
craft()->on('charge.onCharge', function(Event $event) {
// Function logic here
}
}
And 95% of the time it works, but sometimes it doesn't trigger. The transaction goes through, and I can see in my Stripe account that it has been successful, but the payment does not appear in my Charge Logs in Craft, and the onCharge event never triggers.
Can anyone help? Any suggestions?
Thanks, Jai