@spot-flow/checkout-inline-js v0.1.33-dev.3
Spotflow Checkout Inline
This project is an inline library that enables users to make payments seamlessly. It integrates smoothly into your application, providing a streamlined checkout experience.
For React components and usage, React NPM Package
For Vue.js components and usage, Vue NPM Package
For Angular components and usage, Angular NPM Package
Demo
Installation
npm install @spot-flow/checkout-inline-js
Usage
import { CheckoutForm } from "@spot-flow/checkout-inline-js";
const { CheckoutForm } = SpotflowCheckout;
const checkout = new CheckoutForm({});
checkout.setup({
email: "oluXXXXXX@gmail.com",
encryptionKey: "g4ryXXXXXXXXXXXX=",
merchantKey: "sk_test_d96889XXXXXXX684adXXXXX5b69",
amount: 5,
metadata: {
productName: "",
title: ""
},
amount: 20,
currency: "USD",
localCurrency: "NGN"
});
Alternatively, you can include it directly in your HTML via a CDN:
<script src="https://v2.inline-checkout.spotflow.one/dist/checkout-inline.js"></script>
<button onclick="openCheckout()">
Make Payment
</button>
<script>
const openCheckout = () => {
const { CheckoutForm } = SpotflowCheckout;
const checkout = new CheckoutForm({});
checkout.setup({
email: "oluXXXXXX@gmail.com",
encryptionKey: "g4ryXXXXXXXXXXXX=",
merchantKey: "sk_test_d96889XXXXXXX684adXXXXX5b69",
metadata: {
productName: "",
title: ""
},
amount: 20,
currency: "USD",
localCurrency: "NGN"
});
};
</script>
3 months ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
6 months ago
3 months ago
3 months ago
8 months ago
2 months ago
8 months ago
2 months ago
8 months ago
2 months ago
7 months ago
2 months ago
6 months ago
2 months ago
2 months ago
2 months ago
11 months ago
11 months ago
11 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago