O21Pay for developers
  • Welcome to O21Pay
  • INTRODUCTION
    • Introducing O21Pay
    • What is O21Pay-components ?
  • Start integrating
    • Getting started
    • Display/Allow access to payments
    • Display QR-Code
    • Display payment's modal from URL
  • Widget
    • Page 2
  • API Reference
    • API Reference
  • Webhooks
    • Page 5
  • FAQ
    • Page 4
Powered by GitBook
On this page
  1. Start integrating

Getting started

To install from npm:

npm i

If you do not want to install all the modules mandatory for O21Pay you must use this script in your html file.

<script type="module" src="https://cdn.jsdelivr.net/npm/o21pay-components@latest/dist/all.js"></script>

You can either install an optimized version from npm:

npm i
npm i o21pay-components@latest --save

To use an optimal version of O21Pay, you must run this script in your html file. In this case you will have to install the missing modules manually in npm.

<script type="module" src="https://cdn.jsdelivr.net/npm/o21pay-components/dist/all.min.js"></script>

Run a demo:

vite

VITE v3.2.1  ready in 220 ms

  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose
PreviousWhat is O21Pay-components ?NextDisplay/Allow access to payments

Last updated 2 years ago