diff --git a/files/en-us/web/api/canmakepaymentevent/canmakepaymentevent/index.md b/files/en-us/web/api/canmakepaymentevent/canmakepaymentevent/index.md index 6bd2b8baa625db6..283a26e68d6320e 100644 --- a/files/en-us/web/api/canmakepaymentevent/canmakepaymentevent/index.md +++ b/files/en-us/web/api/canmakepaymentevent/canmakepaymentevent/index.md @@ -8,7 +8,7 @@ status: browser-compat: api.CanMakePaymentEvent.CanMakePaymentEvent --- -{{APIRef("Payment Handler API")}}{{SeeCompatTable}} +{{APIRef("Payment Handler API")}}{{SeeCompatTable}}{{AvailableInWorkers("service")}} The **`CanMakePaymentEvent()`** constructor creates a new {{domxref("CanMakePaymentEvent")}} object instance. diff --git a/files/en-us/web/api/canmakepaymentevent/index.md b/files/en-us/web/api/canmakepaymentevent/index.md index 7776e0a830f6715..e26c4235d1c4c73 100644 --- a/files/en-us/web/api/canmakepaymentevent/index.md +++ b/files/en-us/web/api/canmakepaymentevent/index.md @@ -7,7 +7,7 @@ status: browser-compat: api.CanMakePaymentEvent --- -{{APIRef("Payment Handler API")}}{{SeeCompatTable}} +{{APIRef("Payment Handler API")}}{{SeeCompatTable}}{{AvailableInWorkers("service")}} The **`CanMakePaymentEvent`** interface of the {{domxref("Payment Handler API", "", "", "nocode")}} is the event object for the {{domxref("ServiceWorkerGlobalScope.canmakepayment_event", "canmakepayment")}} event, fired on a payment app's service worker to check whether it is ready to handle a payment. Specifically, it is fired when the merchant website calls {{domxref("PaymentRequest.PaymentRequest", "new PaymentRequest()")}}. diff --git a/files/en-us/web/api/canmakepaymentevent/respondwith/index.md b/files/en-us/web/api/canmakepaymentevent/respondwith/index.md index 5694eb097438e39..9b40b1757e810c1 100644 --- a/files/en-us/web/api/canmakepaymentevent/respondwith/index.md +++ b/files/en-us/web/api/canmakepaymentevent/respondwith/index.md @@ -8,7 +8,7 @@ status: browser-compat: api.CanMakePaymentEvent.respondWith --- -{{APIRef("Payment Handler API")}}{{SeeCompatTable}} +{{APIRef("Payment Handler API")}}{{SeeCompatTable}}{{AvailableInWorkers("service")}} The **`respondWith()`** method of the {{domxref("CanMakePaymentEvent")}} interface enables the service worker to respond appropriately to signal whether it is ready to handle payments. diff --git a/files/en-us/web/api/payment_handler_api/index.md b/files/en-us/web/api/payment_handler_api/index.md index b48a4614aea1761..2bd19077b223139 100644 --- a/files/en-us/web/api/payment_handler_api/index.md +++ b/files/en-us/web/api/payment_handler_api/index.md @@ -7,7 +7,7 @@ status: browser-compat: api.PaymentRequestEvent --- -{{DefaultAPISidebar("Payment Handler API")}}{{securecontext_header}}{{SeeCompatTable}} +{{DefaultAPISidebar("Payment Handler API")}}{{securecontext_header}}{{SeeCompatTable}}{{AvailableInWorkers}} The Payment Handler API provides a standardized set of functionality for web applications to directly handle payments, rather than having to be redirected to a separate site for payment handling. diff --git a/files/en-us/web/api/paymentrequestevent/changepaymentmethod/index.md b/files/en-us/web/api/paymentrequestevent/changepaymentmethod/index.md index 04bf63d291c373a..785069e4f131336 100644 --- a/files/en-us/web/api/paymentrequestevent/changepaymentmethod/index.md +++ b/files/en-us/web/api/paymentrequestevent/changepaymentmethod/index.md @@ -8,7 +8,7 @@ status: browser-compat: api.PaymentRequestEvent.changePaymentMethod --- -{{APIRef("Payment Handler API")}}{{SeeCompatTable}} +{{APIRef("Payment Handler API")}}{{SeeCompatTable}}{{AvailableInWorkers("service")}} The **`changePaymentMethod()`** method of the {{domxref("PaymentRequestEvent")}} interface is used by the payment handler to get an updated total, given such payment method details as the billing address. diff --git a/files/en-us/web/api/paymentrequestevent/index.md b/files/en-us/web/api/paymentrequestevent/index.md index 07185ef9952dcf5..db6a4a84d2a8cb0 100644 --- a/files/en-us/web/api/paymentrequestevent/index.md +++ b/files/en-us/web/api/paymentrequestevent/index.md @@ -7,7 +7,7 @@ status: browser-compat: api.PaymentRequestEvent --- -{{SeeCompatTable}}{{APIRef("Payment Handler API")}} +{{SeeCompatTable}}{{APIRef("Payment Handler API")}}{{AvailableInWorkers("service")}} The **`PaymentRequestEvent`** interface of the {{domxref("Payment Handler API", "", "", "nocode")}} is the object passed to a payment handler when a {{domxref("PaymentRequest")}} is made. diff --git a/files/en-us/web/api/paymentrequestevent/instrumentkey/index.md b/files/en-us/web/api/paymentrequestevent/instrumentkey/index.md index f7b7a53bcf5e628..79d059334091a2b 100644 --- a/files/en-us/web/api/paymentrequestevent/instrumentkey/index.md +++ b/files/en-us/web/api/paymentrequestevent/instrumentkey/index.md @@ -9,7 +9,7 @@ status: browser-compat: api.PaymentRequestEvent.instrumentKey --- -{{APIRef("Payment Handler API")}}{{deprecated_header}}{{non-standard_header}} +{{APIRef("Payment Handler API")}}{{deprecated_header}}{{non-standard_header}}{{AvailableInWorkers("service")}} The **`instrumentKey`** read-only property of the {{domxref("PaymentRequestEvent")}} interface returns a diff --git a/files/en-us/web/api/paymentrequestevent/methoddata/index.md b/files/en-us/web/api/paymentrequestevent/methoddata/index.md index 98c02e38ac127ce..9162245e1bf6f90 100644 --- a/files/en-us/web/api/paymentrequestevent/methoddata/index.md +++ b/files/en-us/web/api/paymentrequestevent/methoddata/index.md @@ -8,7 +8,7 @@ status: browser-compat: api.PaymentRequestEvent.methodData --- -{{SeeCompatTable}}{{APIRef("Payment Handler API")}} +{{SeeCompatTable}}{{APIRef("Payment Handler API")}}{{AvailableInWorkers("service")}} The **`methodData`** read-only property of the {{domxref("PaymentRequestEvent")}} interface returns an array of diff --git a/files/en-us/web/api/paymentrequestevent/modifiers/index.md b/files/en-us/web/api/paymentrequestevent/modifiers/index.md index 2c02153f3f7665b..1034ce0ce8e7b91 100644 --- a/files/en-us/web/api/paymentrequestevent/modifiers/index.md +++ b/files/en-us/web/api/paymentrequestevent/modifiers/index.md @@ -8,7 +8,7 @@ status: browser-compat: api.PaymentRequestEvent.modifiers --- -{{SeeCompatTable}}{{APIRef("Payment Handler API")}} +{{SeeCompatTable}}{{APIRef("Payment Handler API")}}{{AvailableInWorkers("service")}} The **`modifiers`** read-only property of the {{domxref("PaymentRequestEvent")}} interface returns an {{jsxref("Array")}} of `PaymentDetailsModifier` objects containing modifiers for payment details. diff --git a/files/en-us/web/api/paymentrequestevent/openwindow/index.md b/files/en-us/web/api/paymentrequestevent/openwindow/index.md index c720b09fc95101c..aa7398fc411f377 100644 --- a/files/en-us/web/api/paymentrequestevent/openwindow/index.md +++ b/files/en-us/web/api/paymentrequestevent/openwindow/index.md @@ -8,7 +8,7 @@ status: browser-compat: api.PaymentRequestEvent.openWindow --- -{{APIRef("Payment Handler API")}}{{SeeCompatTable}} +{{APIRef("Payment Handler API")}}{{SeeCompatTable}}{{AvailableInWorkers("service")}} The **`openWindow()`** method of the {{domxref("PaymentRequestEvent")}} interface opens the specified URL in a new window, only if the given URL is on the same origin as the calling page. It returns a {{jsxref("Promise")}} that resolves with a reference to a {{domxref("WindowClient")}}. diff --git a/files/en-us/web/api/paymentrequestevent/paymentrequestevent/index.md b/files/en-us/web/api/paymentrequestevent/paymentrequestevent/index.md index 227bd6f47836cf2..b05435cc9c37879 100644 --- a/files/en-us/web/api/paymentrequestevent/paymentrequestevent/index.md +++ b/files/en-us/web/api/paymentrequestevent/paymentrequestevent/index.md @@ -8,7 +8,7 @@ status: browser-compat: api.PaymentRequestEvent.PaymentRequestEvent --- -{{APIRef("Payment Handler API")}}{{SeeCompatTable}} +{{APIRef("Payment Handler API")}}{{SeeCompatTable}}{{AvailableInWorkers("service")}} The **`PaymentRequestEvent`** constructor creates a new {{domxref("PaymentRequestEvent")}} object instance. diff --git a/files/en-us/web/api/paymentrequestevent/paymentrequestid/index.md b/files/en-us/web/api/paymentrequestevent/paymentrequestid/index.md index 3a7bb63d8046e0b..a0c2e7d45c8120a 100644 --- a/files/en-us/web/api/paymentrequestevent/paymentrequestid/index.md +++ b/files/en-us/web/api/paymentrequestevent/paymentrequestid/index.md @@ -8,7 +8,7 @@ status: browser-compat: api.PaymentRequestEvent.paymentRequestId --- -{{SeeCompatTable}}{{APIRef("Payment Handler API")}} +{{SeeCompatTable}}{{APIRef("Payment Handler API")}}{{AvailableInWorkers("service")}} The **`paymentRequestId`** read-only property of the {{domxref("PaymentRequestEvent")}} interface returns the ID of the diff --git a/files/en-us/web/api/paymentrequestevent/paymentrequestorigin/index.md b/files/en-us/web/api/paymentrequestevent/paymentrequestorigin/index.md index 195f53b0593ea7e..95a3ec5d17b83c6 100644 --- a/files/en-us/web/api/paymentrequestevent/paymentrequestorigin/index.md +++ b/files/en-us/web/api/paymentrequestevent/paymentrequestorigin/index.md @@ -8,7 +8,7 @@ status: browser-compat: api.PaymentRequestEvent.paymentRequestOrigin --- -{{SeeCompatTable}}{{APIRef("Payment Handler API")}} +{{SeeCompatTable}}{{APIRef("Payment Handler API")}}{{AvailableInWorkers("service")}} The **`paymentRequestOrigin`** read-only property of the {{domxref("PaymentRequestEvent")}} interface returns the origin where the diff --git a/files/en-us/web/api/paymentrequestevent/respondwith/index.md b/files/en-us/web/api/paymentrequestevent/respondwith/index.md index cd8c7f5e59f4d03..8a2b02563790a92 100644 --- a/files/en-us/web/api/paymentrequestevent/respondwith/index.md +++ b/files/en-us/web/api/paymentrequestevent/respondwith/index.md @@ -8,7 +8,7 @@ status: browser-compat: api.PaymentRequestEvent.respondWith --- -{{APIRef("Payment Handler API")}}{{SeeCompatTable}} +{{APIRef("Payment Handler API")}}{{SeeCompatTable}}{{AvailableInWorkers("service")}} The **`respondWith()`** method of the {{domxref("PaymentRequestEvent")}} interface prevents the default event handling and allows you to provide a {{jsxref("Promise")}} for a {{domxref("PaymentResponse")}} object yourself. diff --git a/files/en-us/web/api/paymentrequestevent/toporigin/index.md b/files/en-us/web/api/paymentrequestevent/toporigin/index.md index 9d7ac05033343c4..30621ac8d42f25d 100644 --- a/files/en-us/web/api/paymentrequestevent/toporigin/index.md +++ b/files/en-us/web/api/paymentrequestevent/toporigin/index.md @@ -8,7 +8,7 @@ status: browser-compat: api.PaymentRequestEvent.topOrigin --- -{{SeeCompatTable}}{{APIRef("Payment Handler API")}} +{{SeeCompatTable}}{{APIRef("Payment Handler API")}}{{AvailableInWorkers("service")}} The **`topOrigin`** read-only property of the {{domxref("PaymentRequestEvent")}} interface returns the top-level payee origin where diff --git a/files/en-us/web/api/paymentrequestevent/total/index.md b/files/en-us/web/api/paymentrequestevent/total/index.md index 21d55c54bd2f37b..a2732fb0240b5d0 100644 --- a/files/en-us/web/api/paymentrequestevent/total/index.md +++ b/files/en-us/web/api/paymentrequestevent/total/index.md @@ -8,7 +8,7 @@ status: browser-compat: api.PaymentRequestEvent.total --- -{{SeeCompatTable}}{{APIRef("Payment Handler API")}} +{{SeeCompatTable}}{{APIRef("Payment Handler API")}}{{AvailableInWorkers("service")}} The **`total`** read-only property of the {{domxref("PaymentRequestEvent")}} interface returns a `PaymentCurrencyAmount` object containing the total amount being requested for payment. diff --git a/files/en-us/web/api/serviceworkerglobalscope/canmakepayment_event/index.md b/files/en-us/web/api/serviceworkerglobalscope/canmakepayment_event/index.md index e29ae4c59dfc3b4..42abef39da39045 100644 --- a/files/en-us/web/api/serviceworkerglobalscope/canmakepayment_event/index.md +++ b/files/en-us/web/api/serviceworkerglobalscope/canmakepayment_event/index.md @@ -8,7 +8,7 @@ status: browser-compat: api.ServiceWorkerGlobalScope.canmakepayment_event --- -{{APIRef("Payment Handler API")}}{{SeeCompatTable}}{{SecureContext_Header}} +{{APIRef("Payment Handler API")}}{{SeeCompatTable}}{{SecureContext_Header}}{{AvailableInWorkers("service")}} The **`canmakepayment`** event of the {{domxref("ServiceWorkerGlobalScope")}} interface is fired on a payment app's service worker to check whether it is ready to handle a payment. Specifically, it is fired when the merchant website calls {{domxref("PaymentRequest.PaymentRequest", "new PaymentRequest()")}}. diff --git a/files/en-us/web/api/serviceworkerglobalscope/paymentrequest_event/index.md b/files/en-us/web/api/serviceworkerglobalscope/paymentrequest_event/index.md index afc16770166ea3d..6d4167dbdeb3419 100644 --- a/files/en-us/web/api/serviceworkerglobalscope/paymentrequest_event/index.md +++ b/files/en-us/web/api/serviceworkerglobalscope/paymentrequest_event/index.md @@ -8,7 +8,7 @@ status: browser-compat: api.ServiceWorkerGlobalScope.paymentrequest_event --- -{{APIRef("Payment Handler API")}}{{SeeCompatTable}}{{SecureContext_Header}} +{{APIRef("Payment Handler API")}}{{SeeCompatTable}}{{SecureContext_Header}}{{AvailableInWorkers("service")}} The **`paymentrequest`** event of the {{domxref("ServiceWorkerGlobalScope")}} interface is fired on a payment app when a payment flow has been initiated on the merchant website via the {{domxref("PaymentRequest.show()")}} method. diff --git a/files/en-us/web/api/serviceworkerregistration/paymentmanager/index.md b/files/en-us/web/api/serviceworkerregistration/paymentmanager/index.md index 04b397d1077228b..1e3bcd69124a101 100644 --- a/files/en-us/web/api/serviceworkerregistration/paymentmanager/index.md +++ b/files/en-us/web/api/serviceworkerregistration/paymentmanager/index.md @@ -8,7 +8,7 @@ status: browser-compat: api.ServiceWorkerRegistration.paymentManager --- -{{APIRef("Payment Handler API")}}{{SeeCompatTable}}{{SecureContext_Header}} {{AvailableInWorkers}} +{{APIRef("Payment Handler API")}}{{SeeCompatTable}}{{SecureContext_Header}}{{AvailableInWorkers}} The **`paymentManager`** read-only property of the {{domxref("ServiceWorkerRegistration")}} interface returns a payment app's {{domxref("PaymentManager")}} instance, which is used to manage various payment app functionality.