more stripe error handling added to library