File: /www/wwwroot/zhi.umchkw.com/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="css/normalize.css" />
<link rel="stylesheet" href="css/global.css" />
<!-- Load Stripe.js on your website. -->
<script src="https://js.stripe.com/v3/"></script>
</head>
<body>
<script type="text/javascript" charset="utf-8">
stripe.confirmAfterpayClearpayPayment(
'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',
{
payment_method: {
billing_details: {
name: 'Jenny Rosen',
email: 'jenny@example.com',
address: {
line1: '123 Main Street',
city: 'San Francisco',
state: 'CA',
country: 'US',
postal_code: '94321'
}
}
},
shipping: {
name: 'Jenny Rosen',
address: {
line1: '123 Main Street',
city: 'San Francisco',
state: 'CA',
country: 'US',
postal_code: '94321'
}
},
// Return URL where the customer should be redirected after the authorization.
return_url: window.location.href
}
).then(function(result) {
if (result.error) {
// Inform the customer that there was an error.
}
});
var paymentRequest = stripe.paymentRequest({
country: 'US',
currency: 'usd',
total: {
label: 'Demo total',
amount: 1000,
},
requestPayerName: true,
requestPayerEmail: true,
});
</script>
</body>
</html>