StripeAuthorization class

Controller for stripe authorization.

authorization to authorize the user associated with userId.

Exception will be raised if the payment information associated with userId is not set.

ストライプのオーソリを行うためのコントローラー。

authorizationを実行することでuserIdに関連するユーザーのオーソリを行います。

userIdに関連付けられた支払い情報が設定されていない場合はExceptionが発生します。

Inheritance

Constructors

StripeAuthorization({required String userId, StripePurchaseMasamuneAdapter? adapter})
Controller for stripe authorization.

Properties

adapter StripePurchaseMasamuneAdapter
TAdapter to be used.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
primaryAdapter StripePurchaseMasamuneAdapter
Specifies the default TAdapter if adapter is Null.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userId String
User ID in the application.
final
value → void
The current value of the object. When the value changes, the callbacks registered with addListener will be invoked.
no setterinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
authorization({required double priceAmount, Locale locale = const Locale("en", "US"), bool online = true, required void builder(Uri endpoint, Widget webView, VoidCallback onClosed), VoidCallback? onClosed, String? emailTitleOnRequired3DSecure, String? emailContentOnRequired3DSecure}) Future<void>
Check if priceAmount is available for payment.
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
setValueInternal(void value) → void
Set method is used to update the current state.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

query → const _$StripeAuthorizationQuery
Query for StripeAuthorization.