Stripe class

Constructors

Stripe(String publishableKey, {String apiVersion = defaultApiVersion, String? stripeAccount})
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.

Properties

apiVersion String
final
billing ↔ Billing?
getter/setter pair
connect ↔ Connect?
getter/setter pair
core ↔ Core
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
issuing ↔ Issuing?
getter/setter pair
paymentMethods ↔ PaymentMethods?
getter/setter pair
publishableKey String
final
radar ↔ Radar?
getter/setter pair
reportRuns ↔ ReportRuns?
getter/setter pair
reportTypes ↔ ReportTypes?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scheduledQueries ↔ ScheduledQueries?
getter/setter pair
sessions ↔ Sessions?
getter/setter pair
terminal ↔ Terminal?
getter/setter pair
webhookEndpoints ↔ WebhookEndpoints?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
request(RequestMethod method, String path, {Map<String, dynamic>? params}) Future<Map<String, dynamic>?>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance Stripe?
Access the singleton instance of Stripe. Throws an Exception if Stripe.init hasn't been called previously.
no setter

Static Methods

init(String publishableKey, {String apiVersion = defaultApiVersion, String? stripeAccount}) → void
Initializes the singleton instance of Stripe. Afterwards you can use Stripe.instance to access the created instance.