REST API, webhook docs, and test credentials. Go from zero to processing sandbox payments in minutes.
Create your first payment in 3 lines of code. All requests use HTTPS and return JSON.
const ppay = require('ppay-node')('sk_test_pk_...'); const intent = await ppay.paymentIntents.create({ amount: 499900, // Amount in paisas (₨4,999) currency: 'PKR', payment_methods: ['card', 'jazzcash', 'easypaisa'], sentinel: { enabled: true } }); console.log(intent.client_secret); // Pass to frontend elements
PPay uses API keys to authenticate requests. Your keys are available in the Dashboard. Keep secret keys server-side only.
Creates a PaymentIntent, the single source of truth for a payment attempt.
Score a transaction synchronously. Returns risk score and decision. Rules engine only (Phase 1).
PPay sends signed HTTP POST requests to your endpoint. Verify the PPay-Signature header.
const sig = req.headers['ppay-signature']; const event = ppay.webhooks.constructEvent( req.body, sig, 'whsec_test_secret' ); if (event.type === 'payment.completed') { fulfillOrder(event.data.object); }
Use these credentials in sandbox mode. Any future expiry date and any CVV works.