coderef

Secure payment confirmationLimited availability

The payment extension of a web authentication credential allows a relying party (such as a bank) to create a credential that can be queried by any merchant origin as part of an online checkout that uses the Payment Request API's secure-payment-confirmation payment method. Also known as SPC.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
1–138Not supported
139+Supportedsince Aug 5, 2025
Current: 155
Edge
12–138Not supported
139+Supportedsince Aug 7, 2025
Current: 154
Firefox
✕Not supportedup to 157
Current: 157
Safari
✕Not supportedup to 27
Current: 27
MobileChrome Android
18–138Not supported
139+Supportedsince Aug 5, 2025
Current: 155
Firefox Android
✕Not supportedup to 157
Current: 157
Safari iOS
✕Not supportedup to 27
Current: 27

How 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: WebAuthn extensions#payment.

Feature detection

JS · check before using
if ("PaymentRequest" in globalThis && "securePaymentConfirmationAvailability" in PaymentRequest) {
  // PaymentRequest.securePaymentConfirmationAvailability is available
}

Sub-features

Support for each part of the feature (2). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
CredentialsContainer.create.publicKey_option.extensions.payment9595✕✕95✕✕
PaymentRequest.securePaymentConfirmationAvailability_static139139✕✕139✕✕