Integration Documentation
Your comprehensive guide to integrating ProBuy's Buy Now, Pay Later solutions across digital channels. From portal configuration to custom API implementations, we've got you covered.
Integration Paths
Integration Journey
See the full lifecycle from portal onboarding to production launch with links to every guide.
Backend SDK (Node.js)
Server-side Node.js SDK for secure payment integration. TypeScript support, comprehensive error handling, and production-ready.
Direct API Reference
Work directly with REST endpoints, webhooks, and order lifecycle handling in any language.
Testing & Go-Live
Sandbox environment with test cards, POSTMAN collections, and go-live checklists for thorough testing.
Quick Start Guide
Get to Know ProBuy
Learn about ProBuy's Prosplit platform and capabilities
Integration Journey
Complete roadmap from supplier onboarding to production launch
Getting Started
Complete guide to getting started with ProBuy payment integration
Choose Your SDK
Pick the backend SDK, checkout SDK, or direct API integration
Test & Launch
Run sandbox flows, verify webhooks, and complete the go-live checklist
End-to-End Journey
Follow the recommended sequence to deliver a production-ready integration without missing critical portal configuration or Sandbox checkpoints.
Getting Started
Complete guide to getting started with ProBuy integration.
Credentials & Setup
Issue API tokens, configure webhooks, and map events.
Integration Build
Implement your chosen SDK or direct API flow.
Quality Assurance
Cover success, decline, cancel, and settlement scenarios.
Go-Live & Monitoring
Switch to production tokens and keep dashboards on watch.
Integration Example
// Install the ProBuy Backend SDKnpm install @probuy/backend-sdk
// Initialize ProBuy Backend SDKimport { ProBuyBackendSDK } from '@probuy/backend-sdk';
const probuy = new ProBuyBackendSDK({ apiToken: process.env.PROBUY_API_TOKEN, environment: 'sandbox' // 'sandbox' or 'prod'});
// Create a checkout sessionconst session = await probuy.createCheckoutWithRedirectUrl({ order_reference_id: 'order-123', order_number: 'ORD-123', currency: 'SAR', total_amount: 500, consumer: { first_name: 'Ahmed', last_name: 'Ali', phone_number: '+966501234567' }, country_code: 'SA', merchant_url: { success: 'https://yoursite.com/success', failure: 'https://yoursite.com/failure', cancel: 'https://yoursite.com/cancel' }, // ... more fields});
// Redirect customer to checkoutconsole.log('Redirect to:', session.redirect_url);