interface dom.PaymentRequest
implements EventTarget
import { type dom } from "https://deno.land/x/evt@v2.5.2/mod.ts";
const { PaymentRequest } = dom;
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.
Properties
onshippingaddresschange: ((this: PaymentRequest, ev: Event) => any) | null
onshippingoptionchange: ((this: PaymentRequest, ev: Event) => any) | null
readonly
shippingAddress: PaymentAddress | nullreadonly
shippingType: PaymentShippingType | nullMethods
show(): Promise<PaymentResponse>
addEventListener<K extends keyof PaymentRequestEventMap>(): void
type: K,
listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeEventListener<K extends keyof PaymentRequestEventMap>(): void
type: K,
listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any,
options?: boolean | EventListenerOptions,