Official Server side SDK for PayForPress https://payfor.press
Go to file
2025-06-01 00:26:35 +02:00
src Added all 2025-06-01 00:26:35 +02:00
LICENSE Initial commit 2025-05-31 21:58:48 +00:00
package.json Added all 2025-06-01 00:26:35 +02:00
README.md Added all 2025-06-01 00:26:35 +02:00
tsconfig.json Added all 2025-06-01 00:26:35 +02:00

PayForPress Node.js SDK

Official Node.js SDK for PayForPress API - An onboarding, paywall and payment solution for online media.

Installation

npm install payforpress-node-sdk

Quick Start

import { PayForPress } from 'payforpress-node-sdk';

// Initialize the SDK with your API key
const pfp = new PayForPress({
	apiKey: 'your-api-key-here'
});

// Example: Get user information
async function getUser() {
	try {
		const user = await pfp.users.get({ email: 'user@example.com' });
		console.log('User:', user);
	} catch (error) {
		console.error('Error:', error);
	}
}

Features

  • User Management
  • Article Management
  • Payment Processing
  • Analytics
  • Appearance Settings
  • Targeting Rules
  • Organization Settings

API Documentation

For detailed API documentation, please visit our API Documentation.

Security

This SDK is designed to be used on the server-side only. Never expose your API key in client-side code.

License

MIT