0.1.33-dev.3 • Published 1 year ago
@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-jsUsage
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>0.1.30
1 year ago
0.1.33-dev.3
1 year ago
0.1.31
1 year ago
0.1.32
1 year ago
0.1.33-dev.2
1 year ago
0.1.33-dev.1
1 year ago
0.1.31-dev.1
1 year ago
0.1.27
1 year ago
0.1.28
1 year ago
0.1.29
1 year ago
0.1.22
2 years ago
0.1.32-dev.7
1 year ago
0.1.23
2 years ago
0.1.32-dev.6
1 year ago
0.1.24
2 years ago
0.1.32-dev.5
1 year ago
0.1.25
1 year ago
0.1.32-dev.4
1 year ago
0.1.26
1 year ago
0.1.32-dev.3
1 year ago
0.1.32-dev.2
1 year ago
0.1.32-dev.1
1 year ago
0.1.21
2 years ago
0.1.16
2 years ago
0.1.14
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago