كل شيء على api.zolnapay.com في وضع test. لا أموال حقيقية. بطاقة اختبار، PayPal محاكى، تحويل بنكي/BTC/USDT مع رفع إثبات، وموبايل موني بعد SMS.
import { ZolnaPay } from '@zolnapay/sdk';
const zp = new ZolnaPay({
secretKey: 'sk_test_…',
baseUrl: 'https://api.zolnapay.com/v1',
});
const session = await zp.checkout.sessions.create({
amountCents: 2000,
currency: 'usd',
description: 'Sandbox charge',
});
// Confirm with test card via Checkout UI, or:
await zp.payments.confirm(session.id, {
type: 'card',
card: { number: '4242424242424242', expMonth: 12, expYear: 2030, cvc: '123' },
});
Test card: 4242 4242 4242 4242 · any future expiry · any CVC
Decline: 4000 0000 0000 0002
3DS test: 4000 0025 0000 3155
Confirm examples:
{ "type": "paypal", "email": "buyer@example.com" }
{ "type": "bank_transfer", "bankCode": "bankak" }
{ "type": "crypto_btc" } | { "type": "crypto_usdt" }
Proof upload: POST /v1/public/payments/:id/proof (multipart)
Admin proofs: GET /v1/admin/payment-proofs → POST .../decide
Keys: pk_test_… / sk_test_… (Developers page)
API base: https://api.zolnapay.com/v1
Seed processors: python manage.py seed