1.1.2 • Published 11 months ago

@credova/elements-react v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Credova React Elements

Version Downloads

A thin React wrapper for Credova JavaScript Elements SDK.

Installation

Using Node Package Manager

npm install --save @credova/elements-react

Using Yarn

yarn add @credova/elements-react

Documentation

For a complete list of options and examples, please refer to our React Elements SDK docs

Usage

Initialization

Initializing the SDK is done via calling the useCredova hook with parameters:

import {
  CredovaProvider,
  CardElement,
  useCredova,
} from '@credova/credova-react';

const App = () => {
  return (
    <CredovaProvider apiKey={apiKey}> // Publishable API Key
      <MyComponent />
    </CredovaProvider>
  );
};

const MyComponent = () => {
  const { credova } = useCredova();

  return <CardElement id="cardInput" />;
};
1.1.2

11 months ago

1.1.1

11 months ago

1.1.0

12 months ago

1.0.0

1 year ago

0.0.1

1 year ago