api-lambda-stripe-charge icon indicating copy to clipboard operation
api-lambda-stripe-charge copied to clipboard

Expose stripe-node configuration parameters

Open SimonEismann opened this issue 4 years ago • 2 comments

The libarary https://github.com/stripe/stripe-node offers the following configuration parameters :

apiVersion - Stripe API version to be used. If not set the account's default version will be used. maxNetworkRetries - The amount of times a request should be retried.` httpAgent - Proxy agent to be used by the library. timeout -Maximum time each request can take in ms. host - Host that requests are made to. port - Port that requests are made to. telemetry - Allow Stripe to send latency telemetry.

The template.yaml should allow users to configure this parameters, which would be passed to the stripe library.

If there is any interest in this, I could prepare an according pull request.

SimonEismann avatar Jun 17 '20 09:06 SimonEismann

closed as the project seems to be ono longer maintained

SimonEismann avatar Apr 06 '21 09:04 SimonEismann

@SimonEismann again, no need to close this, as mentioned in the issue #16 I'm currently overwhelmed at the moment, but feel free to create a PR for this feature and I'll review it. Just be sure to make these parameters optional by specifying default parameter values, as the majority of consumers don't want to be forced to manage them manually.

simalexan avatar Apr 06 '21 13:04 simalexan