0.0.12 • Published 2 years ago

amwal-checkout v0.0.12

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Amwal Checkout

To set up your website to use Amwal checkout follow the following steps:

  1. Sign up with amwal merchant for your country. for KSA, visit https://qa-merchant.sa.amwal.tech to obtain a sandbox key or production key

  2. include the npm package js into your website and instantate amwal-checkout web component

<!DOCTYPE html>
<html dir="ltr" lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />
    <title>My Cool Store</title>
    <script type="module" src="https://cdn.jsdelivr.net/npm/amwal-checkout@latest/dist/checkout/checkout.esm.js"></script>
  </head>
  <body>
    <amwal-checkout
      merchant-id="sandbox-amwal-4e876d00-a50e-482c-a6e1-a1a9df400ce5"
      amount="20"
      country-code="SA"
      lang="en"
      dark-mode="off"
      address-required="true"/>
    <script>
      const amwalCheckoutElement = document.querySelector('amwal-checkout');
      amwalCheckoutElement.addEventListener('amwalCheckoutSuccess', ev => console.log(ev.detail) )
    </script>
  </body>
</html>

Amwal Plugin Reference

0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.1

2 years ago