Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/windmill/node_modules/evt/lib/types/lib.dom.d.ts>PaymentRequest

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
interface PaymentRequest
implements EventTarget
import { type PaymentRequest } from "https://deno.land/x/windmill@v1.298.0/node_modules/evt/lib/types/lib.dom.d.ts";

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

readonly
id: string
onshippingaddresschange: ((this: PaymentRequest, ev: Event) => any) | null
onshippingoptionchange: ((this: PaymentRequest, ev: Event) => any) | null
readonly
shippingAddress: PaymentAddress | null
readonly
shippingOption: string | null
readonly
shippingType: PaymentShippingType | null

Methods

abort(): Promise<void>
canMakePayment(): Promise<boolean>
show(): Promise<PaymentResponse>
addEventListener<K extends keyof PaymentRequestEventMap>(
type: K,
listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof PaymentRequestEventMap>(
type: K,
listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void