-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
26 lines (23 loc) · 1.12 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Payment Gateway Integration</title>
</head>
<body>
<!-- Step 1: Include the Script for the Hydrogen Payment Gateway -->
<!-- The script source is provided by the Hydrogen Developers and contains necessary functions for payment processing. -->
<script
src="https://js.hydrogenpay.com/inline.js"
module
></script>
<!-- Step 2: Create a Button to Trigger the Payment Modal -->
<!-- This button is used to trigger the payment process. When clicked, it will call the `openDialogModal()` function defined in main.js file. -->
<button id="myBtn" onclick="openDialogModal()">Checkout</button>
<!-- Step 3: Include the main JavaScript File -->
<!-- The `main.js` file contains the main logic for handling the payment process, such as initializing the payment, handling callbacks (success, failure),
and checking the payment status. Ensure the file is properly linked to the HTML. -->
<script src="main.js"></script>
</body>
</html>