demo · v139

Availability Probe

A single await tells the page whether Secure Payment Confirmation will work for this user. Lets the merchant decide before constructing a full PaymentRequest. Probe the API and see which checkout flow would render.

Click "Probe" first.


  

the code

const ok = await PaymentRequest.securePaymentConfirmationAvailability();
if (ok) {
  // Offer SPC ("authenticate with your bank's passkey")
} else {
  // Fall back to OTP / 3DS challenge
}

see also