PaymentRequest

open external class PaymentRequest(methodData: ReadonlyArray<PaymentMethodData>, details: PaymentDetailsInit, options: PaymentOptions = definedExternally) : EventTarget(source)

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. Available only in secure contexts.

MDN Reference

Constructors

Link copied to clipboard
constructor(methodData: ReadonlyArray<PaymentMethodData>, details: PaymentDetailsInit, options: PaymentOptions = definedExternally)

Functions

Link copied to clipboard
suspend fun abort()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun show(detailsPromise: PromiseLike<PaymentDetailsUpdate>): PaymentResponse

suspend fun show(detailsPromise: PaymentDetailsUpdate = definedExternally): PaymentResponse
Link copied to clipboard