Fixed the updating the account gateway before trying to attach the account to the payment method.