I've been using the onOrderConfirmed( ) to track the event ticket in a proper manner by logging into a collection as understanding Ticket info per event is not an easy task using the dashboard (when coupons are used).
I've realized that the payload structure of the event has changed recently, mainly the invoice part. "grandTotal" field has moved and the type of the amount fields changed to String. This caused the code to fail and not to log the event into the collection.
This is my analysis so far...
I've checked the release notes but there's no mentioning of this change. This kind of change appears to me as compatibility break and if it is perform, it should announced correctly to all !
It took me a few hours to detect what is the exact issue, sad for em to spend so much time on this...
I hope others can find this post and save some time. I hope wix team will take this into account.
Looking into this and passing this feedback along. Thank you for letting us know.