Use receiptType value passed into ajax-end.php to determine actions
rather than relying on session variable "End".