#Libraries & SDKs
Official PlutoPay SDKs wrap the API so you write pluto.transactions.create(...) instead of raw HTTP. Each is generated from the same OpenAPI spec, so they stay accurate, and each ships typed methods, Bearer auth, idempotency, automatic retries, and a webhook signature-verification helper.
Node.js →
npm install @plutopay/node
PHP →
composer require plutopay/plutopay-php
Python →
pip install git+https://github.com/PlutoPayUS/plutopay-python.git
#Node.js — @plutopay/node
Server-side (TypeScript/JavaScript). First-class Next.js / React examples in the repo README.
npm install @plutopay/node
import PlutoPay from '@plutopay/node';
const pluto = new PlutoPay({ apiKey: process.env.PLUTOPAY_SECRET_KEY! });
const txn = await pluto.transactions.createPayment({
createTransactionRequest: { amount: 4750, currency: 'usd', paymentMethodType: 'card' },
idempotencyKey: 'order_1001',
});
#PHP — plutopay/plutopay-php
PSR-4, PHP 8.1+, first-class Laravel usage in the repo README.
composer require plutopay/plutopay-php
use PlutoPay\Client;
use PlutoPay\Model\CreateTransactionRequest;
$pluto = new Client(getenv('PLUTOPAY_SECRET_KEY'));
$txn = $pluto->transactions->createPayment(
new CreateTransactionRequest(['amount' => 4750, 'currency' => 'usd']),
'order_1001'
);
#Python — plutopay
Python 3.9+, pydantic v2. (PyPI release coming soon — install from GitHub for now.)
pip install git+https://github.com/PlutoPayUS/plutopay-python.git
from plutopay import PlutoPay
from plutopay.models.create_transaction_request import CreateTransactionRequest
pluto = PlutoPay(api_key="sk_live_...")
txn = pluto.transactions.create_payment(
CreateTransactionRequest(amount=4750, currency="usd"),
idempotency_key="order_1001",
)
#Verifying webhooks
Every SDK ships the same HMAC-SHA256 signature verifier — see Webhooks for the scheme and per-language examples.