SudoSOS Back-end API / stripe / StripeFactory
Class: StripeFactory ​
Constructors ​
Constructor ​
ts
new StripeFactory(): StripeFactory;Returns ​
StripeFactory
Methods ​
create() ​
ts
static create(): StripeConstructor;Create a configured Stripe SDK client using the private key from the application config.
Returns ​
StripeConstructor
Throws ​
Error when the STRIPE_PRIVATE_KEY environment variable is not set.