bank131-widgets
v0.0.8
Published
1. Виджет для получения токенизированных данных банковской карты 2. Виджет платежной формы
Downloads
79
Readme
Поддерживаемые виджеты
- Виджет для получения токенизированных данных банковской карты
- Виджет платежной формы
| ---|---
Как использовать
Виджет для получения токенизированных данных банковской карты
import React from 'react';
import { Tokenizer } from 'bank131-widgets';
export const Default: React.FC = () => {
return (
<Tokenizer token="token_for_widget" environment={process.env.NODE_ENV} />
);
};
Виджет платежной формы
import React from 'react';
import { Payment } from 'bank131-widgets';
export const Default: React.FC = () => {
return (
<Payment token="token_for_widget" environment={process.env.NODE_ENV} />
);
};
Подключение стилей
import 'bank131-widgets/dist/style.css';
А так же желательно подключить epn-ui.
import 'epn-ui/umd/style.css';
Разработка
Команда для запуска storybook.
yarn dev
Команда для запуска линтера проекта.
yarn lint
Команда для запуска форматирования кода по кодстайлу.
yarn prettier
Команда для запуска сборки production версии.
yarn build