Liking cljdoc? Tell your friends :D

web.payments.PaymentRequestEvent

The PaymentRequestEvent interface of the the Payment Request is the object passed to a payment handler when a web.payments.PaymentRequest made.

The PaymentRequestEvent interface of the the Payment Request
is the object passed to a payment handler when a `web.payments.PaymentRequest`
made.
raw docstring

constructorcljs

(constructor & args)

Constructor.

The PaymentRequestEvent constructor creates a new web.payments.PaymentRequestEvent object which is a constructor for a web.payments.PaymentRequestEvent which is the object passed to a payment handler when a web.payments.PaymentRequest is made..

type Must always be 'PaymentRequest'. options Optional Options are as follows:

instrumentKey: A PaymentInstrument object reflecting the payment instrument selected by the user or an empty string if the user has not registered or chosen a payment instrument. methodData: An array of PaymentMethodData objects containing payment method identifers for the payment methods that the web site accepts and any associated payment method specific data. modifiers: An array of objects containing changes to payment details. paymentRequestId: The ID of the web.payments.PaymentRequest object. paymentRequestOrigin: The origin where the web.payments.PaymentRequest object was initialized. topLeveOrigin: The top-level origin where the web.payments.PaymentRequest object was initialized. total: The total amount being requested for payment.

See also: https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestEvent/PaymentRequestEvent

Constructor.

The PaymentRequestEvent constructor creates a new `web.payments.PaymentRequestEvent` object which is a constructor for a `web.payments.PaymentRequestEvent` which is the object passed to a payment handler when a `web.payments.PaymentRequest` is made..

type
Must always be 'PaymentRequest'.
options Optional
Options are as follows:

instrumentKey: A `PaymentInstrument` object reflecting the payment instrument selected by the user or an empty string if the user has not registered or chosen a payment instrument.
methodData: An array of `PaymentMethodData` objects containing payment method identifers for the payment methods that the web site accepts and any associated payment method specific data.
modifiers: An array of objects containing changes to payment details.
paymentRequestId: The ID of the `web.payments.PaymentRequest` object.
paymentRequestOrigin: The origin where the `web.payments.PaymentRequest` object was initialized.
topLeveOrigin: The top-level origin where the `web.payments.PaymentRequest` object was initialized.
total: The total amount being requested for payment.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestEvent/PaymentRequestEvent`
sourceraw docstring

instrument-keycljs

(instrument-key this)

Property.

[Read Only] [Experimental]

The instrumentKey read-only property of the web.payments.PaymentRequestEvent returns a PaymentInstrument object reflecting the payment instrument by the user or an empty string if the user has not registered chosen a payment instrument.

var instrumentKey = paymentRequestEvent.instrumentKey

See also: https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestEvent/instrumentKey

Property.

[Read Only]
[Experimental]

The instrumentKey read-only property of the `web.payments.PaymentRequestEvent`
returns a `PaymentInstrument` object reflecting the payment instrument
by the user or an empty string if the user has not registered
chosen a payment instrument.

`var instrumentKey = paymentRequestEvent.instrumentKey`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestEvent/instrumentKey`
sourceraw docstring

method-datacljs

(method-data this)

Property.

[Read Only] [Experimental]

The methodData read-only property of the web.payments.PaymentRequestEvent returns an array of PaymentMethodData objects containing payment identifers for the payment methods that the web site accepts any associated payment method specific data.

var methodData[] = paymentRequestEvent.methodData

See also: https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestEvent/methodData

Property.

[Read Only]
[Experimental]

The methodData read-only property of the `web.payments.PaymentRequestEvent`
returns an array of `PaymentMethodData` objects containing payment
identifers for the payment methods that the web site accepts
any associated payment method specific data.

`var methodData[] = paymentRequestEvent.methodData`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestEvent/methodData`
sourceraw docstring

modifierscljs

(modifiers this)

Property.

[Read Only] [Experimental]

The modifiers read-only property of the web.payments.PaymentRequestEvent returns an array of objects containing changes to payment details.

var modifiers[] = paymentDetailsEvent.modifiers

See also: https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestEvent/modifiers

Property.

[Read Only]
[Experimental]

The modifiers read-only property of the `web.payments.PaymentRequestEvent`
returns an array of objects containing changes to payment details.

`var modifiers[] = paymentDetailsEvent.modifiers`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestEvent/modifiers`
sourceraw docstring

open-windowcljs

(open-window this url)

Method.

[Experimental]

The openWindow property of the web.payments.PaymentRequestEvent opens the specified URL in a new window, if and only if the given is on the same origin as the calling page. It returns a js.Promise resolves with a reference to a web.service-workers.WindowClient.

var aPromise = paymentRequestEvent.openWindow(url)

See also: https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestEvent/openWindow

Method.

[Experimental]

The openWindow property of the `web.payments.PaymentRequestEvent`
opens the specified URL in a new window, if and only if the given
is on the same origin as the calling page. It returns a `js.Promise`
resolves with a reference to a `web.service-workers.WindowClient`.

`var aPromise = paymentRequestEvent.openWindow(url)`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestEvent/openWindow`
sourceraw docstring

payment-request-idcljs

(payment-request-id this)

Property.

[Read Only] [Experimental]

The paymentRequestId read-only property of the web.payments.PaymentRequestEvent returns the ID of the web.payments.PaymentRequest object.

var id = paymentRequestEvent.paymentRequestId

See also: https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestEvent/paymentRequestId

Property.

[Read Only]
[Experimental]

The paymentRequestId read-only property of the `web.payments.PaymentRequestEvent`
returns the ID of the `web.payments.PaymentRequest` object.

`var id = paymentRequestEvent.paymentRequestId`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestEvent/paymentRequestId`
sourceraw docstring

payment-request-origincljs

(payment-request-origin this)

Property.

[Read Only] [Experimental]

The paymentRequestOrigin read-only property of the web.payments.PaymentRequestEvent returns the origin where the web.payments.PaymentRequest object initialized.

var aUsvString = paymentRequestEvent.paymentRequestOrigin

See also: https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestEvent/paymentRequestOrigin

Property.

[Read Only]
[Experimental]

The paymentRequestOrigin read-only property of the `web.payments.PaymentRequestEvent`
returns the origin where the `web.payments.PaymentRequest` object
initialized.

`var aUsvString = paymentRequestEvent.paymentRequestOrigin`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestEvent/paymentRequestOrigin`
sourceraw docstring

respond-withcljs

(respond-with this & args)

Method.

[Experimental]

The respondWith property of the web.payments.PaymentRequestEvent prevents the default event handling and allows you to provide js.Promise for a web.payments.PaymentResponse object yourself.

paymentRequestEvent.respondWith( // Promise that resolves with a PaymentResponse. )

See also: https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestEvent/respondWith

Method.

[Experimental]

The respondWith property of the `web.payments.PaymentRequestEvent`
prevents the default event handling and allows you to provide
`js.Promise` for a `web.payments.PaymentResponse` object yourself.

`paymentRequestEvent.respondWith(
// Promise that resolves with a PaymentResponse.
)`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestEvent/respondWith`
sourceraw docstring

top-origincljs

(top-origin this)

Property.

[Read Only] [Experimental]

The topOrigin read-only property of the web.payments.PaymentRequestEvent returns the top level payee origin where the web.payments.PaymentRequest was initialized.

var aUsvString = paymentRequestEvent.topOrigin

See also: https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestEvent/topOrigin

Property.

[Read Only]
[Experimental]

The topOrigin read-only property of the `web.payments.PaymentRequestEvent`
returns the top level payee origin where the `web.payments.PaymentRequest`
was initialized.

`var aUsvString = paymentRequestEvent.topOrigin`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestEvent/topOrigin`
sourceraw docstring

totalcljs

(total this)

Property.

[Read Only] [Experimental]

The total readonly property of the web.payments.PaymentRequestEvent returns a web.payments.PaymentCurrencyAmount object containing total amount being requested for payment.

var paymentCurrencyAmount = paymentRequestEvent.total

See also: https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestEvent/total

Property.

[Read Only]
[Experimental]

The total readonly property of the `web.payments.PaymentRequestEvent`
returns a `web.payments.PaymentCurrencyAmount` object containing
total amount being requested for payment.

`var paymentCurrencyAmount = paymentRequestEvent.total`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestEvent/total`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close