# react-bancard-checkout-js

> React component to load the Bancard form iFrame based on the bancard-checkout-js 3.0.0 library

Latest version **1.0.1** (published 2021-09-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-bancard-checkout-js
pnpm add react-bancard-checkout-js
yarn add react-bancard-checkout-js
bun add react-bancard-checkout-js
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-09-25 |
| First published | 2021-09-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 17.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Héctor Coronel |
| Maintainers | ector-conceptos |
| Keywords | react, bancard, react-bancard, bancard-checkout |

## Links

- npm: https://www.npmjs.com/package/react-bancard-checkout-js
- Repository: https://github.com/EctordAniel/react-bancard-checkout-js
- Homepage: https://github.com/EctordAniel/react-bancard-checkout-js#readme
- Issues: https://github.com/EctordAniel/react-bancard-checkout-js/issues
- npm.io page: https://npm.io/package/react-bancard-checkout-js

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2021-09-25
- 1.0.0 — 2021-09-24

## README

[![npm version](https://img.shields.io/npm/v/react-bancard-checkout-js)](https://www.npmjs.com/package/react-bancard-checkout-js)
[![MIT License](https://img.shields.io/apm/l/atomic-design-ui.svg?)](https://github.com/EctordAniel/react-bancard-checkout-js/blob/v1.0.0/LICENSE)
[![Test and publish](https://github.com/EctordAniel/react-bancard-checkout-js/actions/workflows/publish.yml/badge.svg)](https://github.com/EctordAniel/react-bancard-checkout-js/actions/workflows/publish.yml)

# React Bancard Checkout

It's a react component that loads the Bancard secure payment iFrame based on the [bancard-checkout-js 3.0.0](https://github.com/EctordAniel/bancard-connectors/tree/master/vpos/checkout/javascript) library.


## Usage/Examples

```jsx
import { BancardIframe } from "react-bancard-checkout"

function App() {
  return <BancardIframe 
    processType="Zimple"
    processId="1234"
    enviroment="Staging"
  />
}
```

  
## Props

| Name | Type     | Required     | Default     | Description                |
| :-------- | :------- | :------- | :------- | :------------------------- |
| `processId` | `string` | `false` |`undefined`| Process identifier to be used to invoke the iframe of occasional payment |
| `aliasToken` | `string` | `false` |`undefined` | It is obtained when retrieving the list of cards of a user |
| `processType` | `iFrameType` | `false` |`Checkout` | The type of process to be carried out in this operation |
| `enviroment` | `Production or Staging` | `false` | `Staging` | In what environment is the application running |
| `options.styles` | `iFrameStyles` | `false`|`undefined` | Styles for the iframe. Only HEX, HSL and RGB formats are valid |
| `options.handler` | `(data: IData) => void;` | `false`|`undefined` | You can pass a function to modify the default behavior of the component that would redirect to the return url |

## Running Tests

To run tests, run the following command

```bash
 npm run test
```
or
```bash
 yarn test
```

---
_Source: https://npm.io/package/react-bancard-checkout-js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
