Stripe constructor
Creates a new Stripe object. Use this constructor if you wish to handle the instance of this class by yourself. Alternatively, use Stripe.init to create a singleton and access it through Stripe.instance.
publishableKey is your publishable key, beginning with "sk_". Your can copy your key from https://dashboard.stripe.com/account/apikeys
stripeAccount
is the id of a stripe customer and stats with "cus_".
This is a optional parameter.
Implementation
Stripe(this.publishableKey,
{this.apiVersion = defaultApiVersion, String? stripeAccount})
: _apiHandler = StripeApiHandler(stripeAccount: stripeAccount) {
_validateKey(publishableKey, stripeAccount);
_apiHandler.apiVersion = apiVersion;
webhookEndpoints = WebhookEndpoints(this);
reportRuns = ReportRuns(this);
reportTypes = ReportTypes(this);
scheduledQueries = ScheduledQueries(this);
terminal = Terminal(this);
issuing = Issuing(this);
radar = Radar(this);
connect = Connect(this);
billing = Billing(this);
sessions = Sessions(this);
paymentMethods = PaymentMethods(this);
core = Core(this);
}