Installation

npm / yarn

npm install @inflow_pay/sdk
yarn add @inflow_pay/sdk

CDN (vanilla HTML pages only)

<script src="https://cdn.jsdelivr.net/npm/@inflow_pay/sdk/dist/sdk.umd.js"></script>

When loaded via CDN, the SDK is available globally as InflowPaySDK.

Requirements

  • React apps: React >= 16.8.0 (hooks support)
  • Vanilla JS: Any modern browser
  • Backend: You need a server-side endpoint to create payments using your private API key

Verify Installation

React:

import { InflowPayProvider, CardElement } from '@inflow_pay/sdk/react';

Vanilla JS (npm):

import { InflowPayProvider } from '@inflow_pay/sdk';

Vanilla JS (CDN):

const provider = new InflowPaySDK.InflowPayProvider({ ... });

Always refer to the npm package for the latest version and changelog.