@felloh-org/payment-sdk
v1.0.19
Published
[![Version](https://img.shields.io/npm/v/@felloh-org/payment-sdk.svg)](https://www.npmjs.com/package/@felloh-org/payment-sdk) [![Build Status](https://github.com/felloh-org/payment-sdk/actions/workflows/release.yml/badge.svg?branch=main)](https://github.c
Downloads
24
Readme
Felloh Payment SDK
Installation
Use npm
to install the Felloh Payment SDK module:
npm install @felloh-org/payment-sdk
Alternatively you can use yarn
,
yarn add @felloh-org/payment-sdk
Usage
To instantiate the SDK, you need to pass the container ID that it will be rendered in and your public key.
import SDK from '@felloh-org/payment-sdk';
const publicKey = '1F78BD638B945AED49F4ADAF79CDA';
const felloh = new SDK('payment-iframe', publicKey);
We’ve placed a random API key in this example. Replace it with your actual publishable API keys to test this code through your Felloh account.
For more information on how to use the Felloh SDK, please refer to the Felloh API Documentation or learn to Embed a payment with Felloh.