Unify error handling for /purchase, /verify_receipt and /reedem_code.