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.
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`
(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`
(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`
(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`
(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`
(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`
(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`
(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`
(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`
(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`
(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`
(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`
(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`
(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`
(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`
(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`
(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`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close