async function spcSupport() {
const support = await PaymentRequest.securePaymentConfirmationAvailability();
if (support === "available") {
// Commence SPC payment flow
} else {
// Fallback to traditional flows
}
}PaymentRequest: securePaymentConfirmationAvailability() static method
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.