react-payant
v1.0.3
Published
A react component for Payant inline Js
Downloads
8
Maintainers
Readme
react-payant
This is a react library for implementing payant payment inline js
Demo
Get Started
This React library provides a wrapper to add Paystack Payments to your React application
Install
npm install react-payant --save
or with yarn
yarn add react-payant
Usage
import React, { Component } from "react";
//import the library
import Payant from "react-payant";
function App() {
return (
<Payant
payantPublicKey={"<Your payant public key>"}
client={{
first_name: "Albert",
last_name: "Jane",
email: "[email protected]",
phone: "+2348012345678"
}}
due_date="12/30/2016"
fee_bearer="client"
items={[
{
item: ".Com Domain Name Registration",
description: "alberthostpital.com",
unit_cost: "2500.00",
quantity: "1"
}
]}
callback={response => console.log(response)}
close={() => console.log("closed")}
/>
);
}
export default App;
Contributing
- Fork it!
- Create your feature branch:
git checkout -b feature-name
- Commit your changes:
git commit -am 'Some commit message'
- Push to the branch:
git push origin feature-name
- Submit a pull request
How can I thank you?
Why not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or Any Social Media? Spread the word!
Don't forget to follow me on twitter!
Thanks! John Ayeni.
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Todo
- Write tests