PaymentRequest class
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The Payment Request API's interface is the primary access point into the API, and lets web content and apps accept payments from the end user on behalf of the operator of the site or the publisher of the app.
EventTarget
PaymentRequest
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
-
PaymentRequest(Iterable<
PaymentMethodData> methodData, PaymentDetailsInit details) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Available on PaymentRequest, provided by the PropsPaymentRequest extension
no setter -
onpaymentmethodchange
↔ EventHandlerNonNull<
Event> ? -
Available on PaymentRequest, provided by the PropsPaymentRequest extension
getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
abort(
) → Future< void> -
Available on PaymentRequest, provided by the PropsPaymentRequest extension
-
addEventListener(
String type, EventListener? callback, [dynamic options]) → void -
Available on EventTarget, provided by the PropsEventTarget extension
-
canMakePayment(
) → Future< bool> -
Available on PaymentRequest, provided by the PropsPaymentRequest extension
-
dispatchEvent(
Event event) → bool -
Available on EventTarget, provided by the PropsEventTarget extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeEventListener(
String type, EventListener? callback, [dynamic options]) → void -
Available on EventTarget, provided by the PropsEventTarget extension
-
show(
[Future< PaymentDetailsUpdate> ? detailsPromise]) → Future<PaymentResponse> -
Available on PaymentRequest, provided by the PropsPaymentRequest extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited