Web

Fast and responsive widget for web applications, in vanilla JavaScript, Angular, React, or Vue 🖥.

Installation

Ensure that you include the SwipePay Widget initialize script on each page of your site. The widget should always be loaded directly from https://cdn.swipe.ng, rather than included in a bundle or hosted yourself.

How it works

1. Embed the Connect widget snippet

To embed the widget code in your application, add one of the following code elements to the page where the Connect Widget should appear.

The tabs contain snippets for React, Vue, or shortURL options. You can also select the relevant code tab for you.

#CDN
<script src="https://cdn.swipe.ng/v2/bundle.js"></script>

#NPM
npm install swipe-js 

#Yarn
yarn add swipe-js

2. Get your token from your dashboard

You can get your token from the dashboard.

Not a developer

Get started without writing a single line of code, Try our App Builder! Click here to get started.