v148 · Web APIs · Payment

Payment Method Checker

An e-commerce checkout that probes SPC and Payment Request availability before showing payment UI, then records which real browser path is available on this device.

Checkout

Order summary
Chrome 148 Dev Guide × 1£29.00
Shipping£0.00
Total£29.00

SPC capabilities object

API available
spcSupported
authenticatorAttachment
userVerifyingPlatformAuth

Payment method availability grid

Secure Payment Confirmation
not checked
Biometric passkey confirmation via WebAuthn. Requires platform authenticator.
getSecurePaymentConfirmationCapabilities() platform authenticator
Credit / Debit Card
not checked
Basic card payment via PaymentRequest. Universally supported.
basic-card PaymentRequest API
Google Pay
not checked
Requires Google account and saved card. Android/Chrome Desktop.
https://google.com/pay
Apple Pay
not checked
Requires Safari or iOS. Not available in Chrome.
https://apple.com/apple-pay

Run checkout decision

Run the capability checks first, then choose the payment path this browser actually supports.

  1. Check SPC capabilities
    Call securePaymentConfirmationAvailability() or the older capabilities method when present.
  2. Select payment method
    Based on capabilities, choose between SPC, Google Pay, or basic card
  3. Present payment UI
    Show the appropriate payment sheet or fallback form
  4. Payment complete
    Handle response and confirm order

see also

implementation reference

Need the exact API surface, compatibility boundaries, errors, lifecycle, and source links? Read the matching gendn reference ↗