react-payphone-js
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

react-payphone-js

A Button react.js for payphone checkout

NPM JavaScript Style Guide

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: "example@gmail.com",
              documentId: "1",
              phoneNumber: "+593968452XXX"
            }}
            options={{
              token: "......",
              responseUrl: "http://react-payphone.com/onsuccess",
              cancellationUrl: undefined,
              disableCard: false,
              debug: true
            }} />
  }
}

License

MIT © royaltics-solutions

Package Sidebar

Install

npm i react-payphone-js

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

113 kB

Total Files

10

Last publish

Collaborators

  • royaltics.solutions