0.43.0 • Published 9 months ago

revcollect v0.43.0

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

RevCollect

Features include:

  • Easy integration

Installation and usage

The easiest way to use RevCollect is to install it from npm and build it into your app with Webpack.

yarn add revcollect

Then use it in your app:

import React, { useState } from "react";
import RevCollect from "revcollect";
import '../node_modules/revcollect/dist/esm/index.css'

export default function App() {
  const [show, setShow] = useState(false);

  return (
    <div className="App">
      <RevCollect
        show={show}
        onComplete={(err, data) => {}}
        data={{ amount: "40,000" }}
      />
    </div>
  );
}

Props

Common props you may want to specify include:

  • show - focus the control when it mounts
  • onComplete - callback function on payment completion
  • data - state data

Methods

revcollect exposes one public methods:

  • onComplete(err: Error, data: any) - focus the control programmatically

TypeScript

License

MIT Licensed. Copyright (c) Jed Watson 2022.

0.43.0

9 months ago

0.42.0

9 months ago

0.41.0

9 months ago

0.40.0

9 months ago

0.39.0

9 months ago

0.38.0

9 months ago

0.37.0

9 months ago

0.36.0

9 months ago

0.35.0

9 months ago

0.34.0

9 months ago

0.33.0

9 months ago

0.32.0

9 months ago

0.31.0

9 months ago

0.30.0

9 months ago

0.29.0

9 months ago

0.28.0

9 months ago

0.27.0

9 months ago

0.26.0

9 months ago

0.25.0

9 months ago

0.24.0

9 months ago

0.23.0

9 months ago

0.22.0

9 months ago

0.21.0

9 months ago

0.20.0

9 months ago

0.19.0

9 months ago

0.18.0

9 months ago

0.17.0

9 months ago

0.16.0

9 months ago

0.15.0

9 months ago

0.14.0

9 months ago

0.13.0

9 months ago

0.12.0

9 months ago

0.11.0

9 months ago

0.10.0

9 months ago

0.9.0

9 months ago

0.8.0

9 months ago

0.7.0

9 months ago

0.5.0

9 months ago

0.4.0

9 months ago

0.3.0

9 months ago

0.2.0

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago