Quick Start Guide
Prerequisites
Before you begin, make sure you have:
- A FinFusion account
- Your API keys
- Node.js 14 or later installed
1 Installation
npm install @finfusion/sdk
2 Initialize the SDK
finfusion.ts
import { FinFusion } from '@finfusion/sdk';
const finfusion = new FinFusion({
apiKey: 'your_api_key',
environment: 'sandbox'
});
3 Create Your First Payment
payment.ts
// Create a payment
const payment = await finfusion.payments.create({
amount: 1000, // Amount in cents
currency: 'USD',
description: 'Test payment'
});
4 Test the Integration
API Playground
Create a test payment
- Endpoint
- /v1/payments POST
- Headers
-
- Parameters
- Amount in cents Type: numberCurrency code Type: string
- Response
-
// Response will appear here