The Payment Handler API (part of the Payment Request API) allows web applications to act as payment providers. It enables a streamlined checkout experience by using a standard browser UI for payment rather than custom forms.
Note: The Payment Request API requires HTTPS and a registered payment method.
In this demo, we'll use the basic-card method (deprecated in some browsers) or demonstrate
the API flow with proper error handling.