http
HTTP/1.1 200 OK
Content-Type: text/html
Permissions-Policy: payment=(self)
<!DOCTYPE html>
<html>
<head><title>Checkout</title></head>
<body>
<button id="pay">Pay Now</button>
<script>
document.getElementById('pay').addEventListener('click', async () => {
const request = new PaymentRequest([{
supportedMethods: 'basic-card',
data: {supportedNetworks: ['visa', 'mastercard']}
}], {
total: {label: 'Total', amount: {currency: 'EUR', value: '99.99'}}
});
const response = await request.show();
await response.complete('success');
});
</script>
</body>
</html>