* Fix - Tickets created for each failed payment and only first one is trashed.
* Fix - Undefined constant error. * Tweak - WC 4.0 compatibility.
* Tweak - Remove legacy code.