This is a react library for implementing payant payment inline js
This React library provides a wrapper to add Paystack Payments to your React application
npm install react-payant --save
or with yarn
yarn add react-payant
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: "jane@alberthospital.com",
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;
- 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
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.
This project is licensed under the MIT License - see the LICENSE.md file for details
- Write tests