Payment handlerLimited availability
The payment handler API registers a web application as a payment handler and responds to payment requests in the browser's user interface, rather than redirecting users to a separate site to complete a payment.
Not yet supported in all major browsers — check the table and provide a fallback.
Browser support
DesktopChrome
1–69Not supported
70+Supportedsince Oct 16, 2018
Current: 155Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154Firefox
✕Not supportedup to 157
Current: 157Safari
✕Not supportedup to 27
Current: 27MobileChrome Android
18–69Not supported
70+Supportedsince Oct 17, 2018
Current: 155Firefox Android
✕Not supportedup to 157
Current: 157Safari iOS
✕Not supportedup to 27
Current: 27How to use
Not supported in Firefox, Safari, Firefox Android, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.
Example
Full syntax and examples are on MDN: CanMakePaymentEvent.
Feature detection
JS · check before using
if ("Permissions" in globalThis && "permission_payment-handler" in Permissions.prototype) {
// Permissions.permission_payment-handler is available
}Sub-features
Support for each part of the feature (26). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| CanMakePaymentEvent | 70 | 79 | ✕ | ✕ | 70 | ✕ | ✕ |
| CanMakePaymentEvent.CanMakePaymentEvent | 70 | 79 | ✕ | ✕ | 70 | ✕ | ✕ |
| CanMakePaymentEvent.respondWith | 70 | 79 | ✕ | ✕ | 70 | ✕ | ✕ |
| PaymentManager | 70 | 79 | ✕ | ✕ | 70 | ✕ | ✕ |
| PaymentManager.enableDelegations | 80 | 80 | ✕ | ✕ | 80 | ✕ | ✕ |
| PaymentManager.secure_context_required | 122 | 122 | ✕ | ✕ | 122 | ✕ | ✕ |
| PaymentManager.userHint | 70 | 79 | ✕ | ✕ | 70 | ✕ | ✕ |
| PaymentRequestEvent | 70 | 79 | ✕ | ✕ | 70 | ✕ | ✕ |
| PaymentRequestEvent.PaymentRequestEvent | 70 | 79 | ✕ | ✕ | 70 | ✕ | ✕ |
| PaymentRequestEvent.changePaymentMethod | 76 | 79 | ✕ | ✕ | 76 | ✕ | ✕ |
| PaymentRequestEvent.changeShippingAddress | 80 | 80 | ✕ | ✕ | 80 | ✕ | ✕ |
| PaymentRequestEvent.changeShippingOption | 80 | 80 | ✕ | ✕ | 80 | ✕ | ✕ |
| PaymentRequestEvent.methodData | 70 | 79 | ✕ | ✕ | 70 | ✕ | ✕ |
| PaymentRequestEvent.modifiers | 70 | 79 | ✕ | ✕ | 70 | ✕ | ✕ |
| PaymentRequestEvent.openWindow | 70 | 79 | ✕ | ✕ | 70 | ✕ | ✕ |
| PaymentRequestEvent.paymentOptions | 80 | 80 | ✕ | ✕ | 80 | ✕ | ✕ |
| PaymentRequestEvent.paymentRequestId | 70 | 79 | ✕ | ✕ | 70 | ✕ | ✕ |
| PaymentRequestEvent.paymentRequestOrigin | 70 | 79 | ✕ | ✕ | 70 | ✕ | ✕ |
| PaymentRequestEvent.respondWith | 70 | 79 | ✕ | ✕ | 70 | ✕ | ✕ |
| PaymentRequestEvent.shippingOptions | 80 | 80 | ✕ | ✕ | 80 | ✕ | ✕ |
Show 6 more
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| PaymentRequestEvent.topOrigin | 70 | 79 | ✕ | ✕ | 70 | ✕ | ✕ |
| PaymentRequestEvent.total | 70 | 79 | ✕ | ✕ | 70 | ✕ | ✕ |
| Permissions.permission_payment-handler | 66 | 79 | ✕ | ✕ | 66 | ✕ | ✕ |
| ServiceWorkerGlobalScope.canmakepayment_event | 70 | 79 | ✕ | ✕ | 70 | ✕ | ✕ |
| ServiceWorkerGlobalScope.paymentrequest_event | 70 | 79 | ✕ | ✕ | 70 | ✕ | ✕ |
| ServiceWorkerRegistration.paymentManager | 70 | 79 | ✕ | ✕ | 70 | ✕ | ✕ |