Welcome to PaySwift, your gateway to seamless inline payments for your fintech app!
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.
To integrate PaySwift into your project, follow these simple steps:
-
Include the PaySwift script in your HTML file:
<script src="https://4825-102-91-71-22.ngrok-free.app/paySwift.js"></script>
const paymentConfig = {
email: 'user@example.com',
amount: 100.00,
key: 'Pub_key',
ref: '',
// Add more configuration options as needed
};
const paymentInstance = PaySwift.setup(paymentConfig);
paymentInstance.openIframe();
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();