1.0.0 • Published 3 years ago

paygo-checkout-test-sandbox v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

PayGo Checkout

Quality Gate Status Security Rating Code Smells Bugs Vulnerabilities

PayGo Checkout is a javascript library to generate card hashes.

How to use

First, install the package:

yarn add paygo-checkout

Or using npm:

npm install paygo-checkout

The paygo library can be used on the node or in the browser.

Node:

import { checkout } from 'paygo-checkout';

Browser:

The JSDelivr CDN can be used in the browser. The library will be available through the global "paygo" variable.

<script src="https://cdn.jsdelivr.net/npm/paygo-checkout@1.x.x/dist/paygo-checkout.min.js"></script>

To generate a card hash, just call the "generateCardHash" method. As in the following code:

Node:

checkout.generateCardHash(authorization, card, params)
  .then(cardHash => console.log(cardHash));

Browser:

paygo.checkout.generateCardHash(authorization, card, params)
  .then(cardHash => console.log(cardHash));

License

paygo-checkout.js
MIT License

Copyright (c) 2021 PayGo Pagamentos

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.