PaymentRequest class
This Payment Request API interface is the primary access point into the API, and lets web content and apps accept payments from the end user. Available only in secure contexts.
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
-
PaymentRequest(List<
PaymentMethodData> methodData, PaymentDetailsInit details) -
factory
Properties
-
abort
↔ Future<
void> Function() -
Available on PaymentRequest, provided by the PaymentRequest$Typings extension
getter/setter pair - addEventListener ↔ void Function(String, [Object?, Object?])
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair -
addEventListener
→ ({void Function<
K$>(PaymentRequestEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on PaymentRequest, provided by the PaymentRequest$Typings extension
Overload accessor: $1, $2no setter -
canMakePayment
↔ Future<
bool> Function() -
Available on PaymentRequest, provided by the PaymentRequest$Typings extension
getter/setter pair - dispatchEvent ↔ bool Function(Event)
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Available on PaymentRequest, provided by the PaymentRequest$Typings extension
MDN Referenceno setter - onpaymentmethodchange ↔ dynamic Function(Event)?
-
Available on PaymentRequest, provided by the PaymentRequest$Typings extension
MDN Referencegetter/setter pair - removeEventListener ↔ void Function(String, [Object?, Object?])
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair -
removeEventListener
→ ({void Function<
K$>(PaymentRequestEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on PaymentRequest, provided by the PaymentRequest$Typings extension
Overload accessor: $1, $2no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
show
↔ Future<
PaymentResponse> Function([Object?]) -
Available on PaymentRequest, provided by the PaymentRequest$Typings extension
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited