api-lambda-stripe-charge
api-lambda-stripe-charge copied to clipboard
Expose stripe-node configuration parameters
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.
closed as the project seems to be ono longer maintained
@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.