'https' or 'http'. http is never appropriate for sending requests to Stripe servers, and we strongly discourage http, even in local testing scenarios, as this can result in your credentials being transmitted over an insecure channel.
Ofcourse this introduces some breaking changes, since apiVersione should be configured under stripe.serverConfig.apiVersion instead of the old stripe.apiVersion.
Following the official stripe-node repo and its documentation it could be beneficial to add all the other available options:
From the original README, some of the configurations are:
apiVersion
null
maxNetworkRetries
httpAgent
null
timeout
host
'api.stripe.com'
port
protocol
'https'
'https'
or'http'
.http
is never appropriate for sending requests to Stripe servers, and we strongly discouragehttp
, even in local testing scenarios, as this can result in your credentials being transmitted over an insecure channel.telemetry
true