| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <!DOCTYPE html>
- <html>
- <head lang="en">
- <meta charset="utf-8" />
- <!-- <link rel="stylesheet" href="style.css" /> -->
- <meta name="viewport" content="width=device-width, initial-scale=1" />
- <title>Airwallex Checkout Playground</title>
- <script src="https://checkout.airwallex.com/assets/elements.bundle.min.js"></script>
- </head>
- <body>
- <div id="element" style="display: none;">
- <!-- <div class="field-container">
- <div>Card number</div>
- <div id="cardNumber"></div>
- <p id="cardNumber-error" style="color: red;"></p>
- </div>
- <div class="field-container">
- <div>Expiry</div>
- <div id="expiry"></div>
- <p id="expiry-error" style="color: red;"></p>
- </div>
- <div class="field-container">
- <div>Cvc</div>
- <div id="cvc"></div>
- <p id="cvc-error" style="color: red;"></p>
- </div>
- <div id="submit" class="submit">Submit</div> -->
- </div>
- <script src="./js/card.js"></script>
- </body>
- <style>
- #cardNumber,
- #expiry,
- #cvc {
- display: flex;
- justify-content: center;
- align-items: center;
- min-height: 40px;
- padding: 4px 8px;
- margin-top: 10px;
- border: 1px solid #ccc;
- border-radius: 7px;
- }
- /* #cardNumber-error,#expiry-error,#cvc-error{
- } */
- p{
- height: 16px;
- line-height: 16px;
- }
- .submit {
- width: calc(100% - 30px);
- height: 38px;
- padding: 8px 15px;
- background-color: #000;
- color: #fff;
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 8px;
- font-size: 14px;
- }
- </style>
- </html>
|