@kwentapay/web-client-react
v0.1.0
Published
Include Kwenta payments in your React web app
Downloads
4
Readme
@kwentapay/web-client-react
A React component library to integrate the Kwenta GUI directly into your web application.
Installation
| Package manager | Command |
| --------------- | ------------------------------------------ |
| NPM | npm install @kwentapay/web-client-react
|
| Yarn | yarn add @kwentapay/web-client-react
|
| PNPM | pnpm install @kwentapay/web-client-react
|
Example
import { Kwenta } from "@kwentapay/web-client-react";
const transactionUrl =
"https://api.kwenta.st/o/4e83556f-a105-496e-8457-cea37d5bc173";
const App = () => (
<Kwenta
url={transactionUrl}
onPayerPrepaid={() => alert("Current payer has prepaid successfully")}
onPayersInvited={() => alert("Current payer has invited the other payers")}
/>
);
export default App;
See also
License
This project is licensed under the MIT License.