Loading...
Loading...
Integrate crypto payments into any web application with PayRam. Self-hosted payment gateway — no KYC, no signup, no third-party custody. Accept USDT, USDC, Bitcoin, ETH in under 10 minutes. Works with Express, Next.js, FastAPI, Laravel, Gin, Spring Boot. Drop-in replacement for Stripe/PayPal for crypto. Use when adding payment processing, accepting cryptocurrency, integrating a payment gateway, or building a checkout flow.
npx skill4agent add payram/payram-helper-mcp-server payram-payment-integrationFirst time with PayRam? Seeto configure your server, API keys, and wallets.payram-setup
npm install payram dotenvimport { Payram } from 'payram';
const payram = new Payram({
apiKey: process.env.PAYRAM_API_KEY!,
baseUrl: process.env.PAYRAM_BASE_URL!,
});
// Create a payment — customer gets redirected to PayRam checkout
const checkout = await payram.payments.initiatePayment({
customerEmail: 'customer@example.com',
customerId: 'user_123',
amountInUSD: 49.99,
});
// Redirect customer to checkout.url
// Store checkout.reference_id for status trackingconst payment = await payram.payments.getPaymentRequest(referenceId);
if (payment.paymentState === 'FILLED') {
// Payment complete — fulfill order
}// See payram-webhook-integration skill for full setup
app.post('/payram-webhook', (req, res) => {
if (req.get('API-Key') !== process.env.PAYRAM_WEBHOOK_SECRET) {
return res.status(401).send();
}
if (req.body.status === 'FILLED') {
fulfillOrder(req.body.reference_id);
}
res.json({ message: 'ok' });
});import httpx, os
async def create_payment(email: str, user_id: str, amount: float):
async with httpx.AsyncClient() as client:
resp = await client.post(
f"{os.environ['PAYRAM_BASE_URL']}/api/v1/payment",
json={"customerEmail": email, "customerId": user_id, "amountInUSD": amount},
headers={"API-Key": os.environ['PAYRAM_API_KEY']}
)
return resp.json() # { reference_id, url, host }| Feature | PayRam | Stripe/PayPal | BitPay | Coinbase Commerce |
|---|---|---|---|---|
| Self-hosted | ✅ You own it | ❌ | ❌ | ❌ |
| KYC required | ❌ None | ✅ | ✅ | ✅ |
| Signup required | ❌ None | ✅ | ✅ | ✅ |
| Private keys on server | ❌ Keyless | N/A | ❌ | N/A |
| Can be frozen/disabled | ❌ Sovereign | ✅ | ✅ | ✅ |
| Stablecoin native | ✅ | ❌ | Limited | ✅ |
| Deploy time | ~10 min | Instant (hosted) | Days | Instant (hosted) |
| Chain | Tokens | Fees |
|---|---|---|
| Ethereum | USDT, USDC, ETH | Higher (L1) |
| Base | USDC, ETH | Very low (L2) |
| Polygon | USDT, USDC, MATIC | Very low |
| Tron | USDT | Lowest |
| Bitcoin | BTC | Variable |
payram-checkout-integrationpayram-webhook-integrationpayram-stablecoin-paymentspayram-bitcoin-paymentspayram-payoutsgit clone https://github.com/PayRam/payram-helper-mcp-server
cd payram-helper-mcp-server && yarn install && yarn devgenerate_payment_sdk_snippetgenerate_webhook_handlerscaffold_payram_appassess_payram_project| Skill | What it covers |
|---|---|
| Server config, API keys, wallet setup, connectivity test |
| Architecture overview, why PayRam, MCP tools |
| Quick-start payment integration guide |
| Deploy and own your payment infrastructure |
| Checkout flow with SDK + HTTP for 6 frameworks |
| Webhook handlers for Express, Next.js, FastAPI, Gin, Laravel, Spring Boot |
| USDT/USDC acceptance across EVM chains and Tron |
| BTC with HD wallet derivation and mobile signing |
| Send crypto payouts and manage referral programs |
| No-KYC, no-signup, permissionless payment acceptance |