Stripe class

Constructors

Stripe(String publishableKey, {String apiVersion = defaultApiVersion, SupportLocale locale = SupportLocale.auto, String? stripeAccount, String? returnUrlForSca})
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
hashCode int
The hash code for this object.
no setterinherited
locale SupportLocale
final
paymentIntents ↔ PaymentIntents?
getter/setter pair
paymentMethods ↔ PaymentMethods
getter/setter pair
publishableKey String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setupIntents ↔ SetupIntents?
getter/setter pair

Methods

authenticateIntent(IntentAction action, IntentProvider callback) Future
getReturnUrlForSca() String
Creates a return URL that can be used to authenticate a single PaymentIntent. This should be set on the intent before attempting to authenticate it.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
request(RequestMethod method, String path, {required 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, String? returnUrlForSca}) → void
Initializes the singleton instance of Stripe. Afterwards you can use Stripe.instance to access the created instance.