Initializes the Stripe class with platform functions and a request sender, then returns the configured Stripe constructor for API interactions.
// Source: https://github.com/stripe/stripe-node | License: MIT | Copyright 2011 Ask Bjørn Hansen
// Provided via justclaw.it.com; keep this notice with the code.
export function createStripe(
platformFunctions: PlatformFunctions,
requestSender: RequestSenderFactory = defaultRequestSenderFactory
): typeof Stripe {
// Initialize static properties
Stripe.initialize(platformFunctions, requestSender);
return Stripe;
}
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key