Fixed problem with email receipt getting sent when purchase marked as failed