WebIDLpedia

PaymentResponse interface

Definition

Payment Request API 1.1 defines PaymentResponse



[SecureContext, Exposed=Window]
interface PaymentResponse : EventTarget  {
  [Default] object toJSON();

  readonly attribute DOMString requestId;
  readonly attribute DOMString methodName;
  readonly attribute object details;

  [NewObject]
  Promise<undefined> complete(
    optional PaymentComplete result = "unknown",
    optional PaymentCompleteDetails details = {}
  );
  [NewObject]
  Promise<undefined> retry(optional PaymentValidationErrors errorFields = {});
};

Methods and attributes that return objects implementing PaymentResponse

Referring IDL interfaces/dictionaries