Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PaymentRequest

Package version

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

  • constructor: function
    • Returns EventTarget

  • prototype: EventTarget

id

id: string

onshippingaddresschange

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

onshippingoptionchange

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

shippingAddress

shippingAddress: PaymentAddress | null

shippingOption

shippingOption: string | null

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

  • Returns Promise<PaymentResponse>

Generated using TypeDoc