added exception handling for stripe