Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PaymentRequest

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

Index

Properties

EventTarget

EventTarget: { constructor: any; prototype: EventTarget }

Type declaration

Readonly id

id: string

onshippingaddresschange

onshippingaddresschange: ((this: PaymentRequest, ev: Event) => any) | null

onshippingoptionchange

onshippingoptionchange: ((this: PaymentRequest, ev: Event) => any) | null

Readonly shippingAddress

shippingAddress: PaymentAddress | null

Readonly shippingOption

shippingOption: string | null

Readonly shippingType

shippingType: PaymentShippingType | null

Methods

abort

  • 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

    Returns boolean

removeEventListener

show

Generated using TypeDoc