Stripe and Mercury gateway need to check for success before accessing error codes