move stripe error handling into separate method