added custom receipt validation for ios