Skip to content

gaiyadev/PaySwift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PaySwift Payment Integration

Welcome to PaySwift, your gateway to seamless inline payments for your fintech app!

Table of Contents

Overview

PaySwift is a JavaScript library that allows you to easily integrate seamless inline payments into your fintech application. Inspired by the likes of Paystack and Flutterwave, PaySwift simplifies the process of collecting payments by providing a customizable and user-friendly payment information popup.

Installation

To integrate PaySwift into your project, follow these simple steps:

  1. Include the PaySwift script in your HTML file:

    <script src="https://4825-102-91-71-22.ngrok-free.app/paySwift.js"></script>
    

Initialize PaySwift with your configuration:

    const paymentConfig = {
  email: 'user@example.com',
  amount: 100.00,
  key: 'Pub_key',
  ref: '',

  // Add more configuration options as needed
};

const paymentInstance = PaySwift.setup(paymentConfig);

Trigger the payment popup when needed:

paymentInstance.openIframe();

Usage

Here's a basic example of how to use PaySwift in your application:

// Initialize PaySwift with your configuration
const paymentConfig = {
  email: 'user@example.com',
  amount: 100.00,
  // Add more configuration options as needed
};

const paymentInstance = PaySwift.setup(paymentConfig);

// Open the payment popup when a payment is requested
paymentInstance.openIframe();

About

Your Gateway to Seamless Transactions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published