Rocketfuel SDK nodejs

Rocketfuel Node.js SDK Integration Guide

This document provides a step-by-step guide for integrating Rocketfuel’s Node.js SDK (rocketfuel-sdk) to generate invoices and perform purchase checks in your application.

Prerequisites

  • Node.js installed

  • An active Rocketfuel account with access credentials:

    • CLIENT_ID

    • CLIENT_SECRET

    • MERCHANT_ID

Installation

npm install @rkfl/transact-server
import { Rocketfuel } from '@rkfl/transact-server';

Reading Credentials from Environment Variables

Use environment variables for security and flexibility.

export const CLIENT_ID = process.env.CLIENT_ID;
export const CLIENT_SECRET = process.env.CLIENT_SECRET;
export const MERCHANT_ID = process.env.MERCHANT_ID;

Initializing the Rocketfuel Client

Initialize the RocketfuelClient with appropriate parameters:

References

  • PayIn Integration - Link

  • Payout Integration - Link

  • Age Verification - Link

Last updated

Was this helpful?