Installation
npm / yarn
npm install @inflow_pay/sdkyarn add @inflow_pay/sdkCDN (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.
Updated 1 day ago