react-kalpay
v1.0.84
Published
A react library to use kalpay checkout in your react application.
Downloads
7
Readme
react-kalpay
A customizable component for kalpay built with React.
To install the latest stable version:
npm install --save react-kalpay
Basic usage (KalPay Checkout Button)
import React, { Component } from 'react';
import { KalPayCheckout } from 'react-kalpay';
export default class App extends Component {
render() {
return (
<KalPayCheckout
theme={"dark"}
borderRadius={"0px"}
merchantId={"02AjE5rGV0D1khhJUy8wDsluC59xddKC"}
mode={"test"}
callbackUrl={'https://kalpayfinancials.com'}
totalBillAmount={1200}
deliveryCharges={200}
/>
);
}
}
API
KalPay Info Popup
import React, { Component } from 'react';
import { KalPayInfoPopup } from 'react-kalpay';
const App = props => {
const [open,setOpen] = React.useState(false)
const closeModal = () => setOpen(false)
return (
<KalPayInfoPopup
open={open}
closeModal={closeModal}
/>
);
}
export default App