Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

Hierarchy

  • EventTarget
    • PaymentRequest

Index

Properties

EventTarget

EventTarget: object

Type declaration

  • constructor: function
    • new __type(): EventTarget
    • Returns EventTarget

  • prototype: EventTarget

id

id: string

onshippingaddresschange

onshippingaddresschange: function | null

onshippingoptionchange

onshippingoptionchange: function | null

shippingAddress

shippingAddress: PaymentAddress | null

shippingOption

shippingOption: string | null

shippingType

shippingType: PaymentShippingType | null

Methods

abort

  • abort(): Promise<void>
  • Returns Promise<void>

addEventListener

canMakePayment

  • canMakePayment(): Promise<boolean>
  • Returns Promise<boolean>

dispatchEvent

  • dispatchEvent(event: Event): boolean
  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    • event: Event

    Returns boolean

removeEventListener

show

  • Returns Promise<PaymentResponse>

Generated using TypeDoc