Skip to content

felloh-org/payment-sdk

Repository files navigation

Felloh Payment SDK

Version Build Status Downloads Try on RunKit

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.

SDK Documentation