Invalid response object from API: (HTTP response code was 0)
I downloaded the stripe api and ran all it's unit tests. That way I could find that curl was disabled. By enabling following functions in php, all unit tests succeeded and it got working:

shell_exec
proc_open
curl_exec