PaymentResponse extension type

The PaymentResponse interface of the Payment Request API is returned after a user selects a payment method and approves a payment request.


API documentation sourced from MDN Web Docs.

on
Implemented types
Available extensions

Properties

details JSObject
The details read-only property of the PaymentResponse interface returns a JSON-serializable object that provides a payment method specific message used by the merchant to process the transaction and determine a successful funds transfer.
no setter
hashCode int
The hash code for this object.
no setterinherited
methodName String
The methodName read-only property of the PaymentResponse interface returns a string uniquely identifying the payment handler selected by the user.
no setter
requestId String
The requestId read-only property of the PaymentResponse interface returns the free-form identifier supplied by the PaymentResponse() constructor by details.id.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addEventListener(String type, EventListener? callback, [JSAny options]) → void
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
inherited
complete([PaymentComplete result, PaymentCompleteDetails details]) JSPromise<JSAny?>
The PaymentRequest method complete() of the Payment Request API notifies the that the user interaction is over, and causes any remaining user interface to be closed.
dispatchEvent(Event event) bool
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually with dispatchEvent().
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeEventListener(String type, EventListener? callback, [JSAny options]) → void
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener from the target. The event listener to be removed is identified using a combination of the event type, the event listener function itself, and various optional options that may affect the matching process; see Matching event listeners for removal.
inherited
retry([PaymentValidationErrors errorFields]) JSPromise<JSAny?>
The PaymentResponse interface's retry() method makes it possible to ask the user to retry a payment after an error occurs during processing.
toJSON() JSObject
The toJSON() method of the PaymentResponse interface is a ; it returns a JSON representation of the PaymentResponse object.
toString() String
A string representation of this object.
inherited

Operators

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