Liking cljdoc? Tell your friends :D

payment.PaymentRequestEvent

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

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

constructorcljs

Constructor.

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

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

instrumentKey: A payment.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 payment.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 payment.PaymentRequest object. paymentRequestOrigin: The origin where the payment.PaymentRequest object was initialized. topLeveOrigin: The top-level origin where the payment.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 `payment.PaymentRequestEvent` object which is a constructor for a `payment.PaymentRequestEvent` which is the object passed to a payment handler when a `payment.PaymentRequest` is made..

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

instrumentKey: A `payment.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 `payment.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 `payment.PaymentRequest` object.
paymentRequestOrigin: The origin where the `payment.PaymentRequest` object was initialized.
topLeveOrigin: The top-level origin where the `payment.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.

The instrumentKey read-only property of the payment.PaymentRequestEvent returns a payment.PaymentInstrument object reflecting the payment selected 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.

The instrumentKey read-only property of the `payment.PaymentRequestEvent`
returns a `payment.PaymentInstrument` object reflecting the payment
selected 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.

The methodData read-only property of the payment.PaymentRequestEvent returns an array of payment.PaymentMethodData objects containing method 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.

The methodData read-only property of the `payment.PaymentRequestEvent`
returns an array of `payment.PaymentMethodData` objects containing
method 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.

The modifiers read-only property of the payment.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.

The modifiers read-only property of the `payment.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.

The openWindow property of the payment.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 web.Promise resolves with a reference to a web.WindowClient.

var aPromise = paymentRequestEvent.openWindow(url)

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

Method.

The openWindow property of the `payment.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 `web.Promise`
resolves with a reference to a `web.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.

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

var id = paymentRequestEvent.paymentRequestId

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

Property.

The paymentRequestId read-only property of the `payment.PaymentRequestEvent`
returns the ID of the `payment.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.

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

var aUsvString = paymentRequestEvent.paymentRequestOrigin

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

Property.

The paymentRequestOrigin read-only property of the `payment.PaymentRequestEvent`
returns the origin where the `payment.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.

The respondWith property of the payment.PaymentRequestEvent prevents the default event handling and allows you to provide web.Promise for a payment.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.

The respondWith property of the `payment.PaymentRequestEvent`
prevents the default event handling and allows you to provide
`web.Promise` for a `payment.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

set-instrument-key!cljs

(set-instrument-key! this val)

Property.

The instrumentKey read-only property of the payment.PaymentRequestEvent returns a payment.PaymentInstrument object reflecting the payment selected 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.

The instrumentKey read-only property of the `payment.PaymentRequestEvent`
returns a `payment.PaymentInstrument` object reflecting the payment
selected 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

set-method-data!cljs

(set-method-data! this val)

Property.

The methodData read-only property of the payment.PaymentRequestEvent returns an array of payment.PaymentMethodData objects containing method 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.

The methodData read-only property of the `payment.PaymentRequestEvent`
returns an array of `payment.PaymentMethodData` objects containing
method 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

set-modifiers!cljs

(set-modifiers! this val)

Property.

The modifiers read-only property of the payment.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.

The modifiers read-only property of the `payment.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

set-payment-request-id!cljs

(set-payment-request-id! this val)

Property.

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

var id = paymentRequestEvent.paymentRequestId

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

Property.

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

`var id = paymentRequestEvent.paymentRequestId`

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

set-payment-request-origin!cljs

(set-payment-request-origin! this val)

Property.

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

var aUsvString = paymentRequestEvent.paymentRequestOrigin

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

Property.

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

`var aUsvString = paymentRequestEvent.paymentRequestOrigin`

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

set-top-origin!cljs

(set-top-origin! this val)

Property.

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

var aUsvString = paymentRequestEvent.topOrigin

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

Property.

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

`var aUsvString = paymentRequestEvent.topOrigin`

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

set-total!cljs

(set-total! this val)

Property.

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

var paymentCurrencyAmount = paymentRequestEvent.total

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

Property.

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

`var paymentCurrencyAmount = paymentRequestEvent.total`

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

top-origincljs

(top-origin this)

Property.

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

var aUsvString = paymentRequestEvent.topOrigin

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

Property.

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

`var aUsvString = paymentRequestEvent.topOrigin`

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

totalcljs

(total this)

Property.

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

var paymentCurrencyAmount = paymentRequestEvent.total

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

Property.

The total readonly property of the `payment.PaymentRequestEvent`
returns a `payment.PaymentCurrencyAmount` object containing the
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