react-payphone-js
v0.1.1
Published
A Button react.js for payphone checkout
Downloads
25
Maintainers
Readme
react-payphone-js
A Button react.js for payphone checkout
Install
npm install --save react-payphone-js
Usage
import React, { Component } from 'react'
import PayphoneButton from 'react-payphone-js'
import 'react-payphone-js/dist/index.css'
class Example extends Component {
render() {
return <PayphoneButton reference='React Payphone Plataform'
order={{
amount: 10,
amountWithoutTax: 10,
currency: "USD",
email: "[email protected]",
documentId: "1",
phoneNumber: "+593968452XXX"
}}
options={{
token: "......",
responseUrl: "http://react-payphone.com/onsuccess",
cancellationUrl: undefined,
disableCard: false,
debug: true
}} />
}
}
License
MIT © royaltics-solutions