Welcome to the Precium Server-to-Server (S2S) Payment Integration documentation. This comprehensive guide provides everything needed to integrate Precium's payment processing directly from your server environment.
This documentation is designed for:
Before beginning your integration, ensure your organisation meets the following requirements:
| Requirement | Description |
|---|---|
| PCI DSS Compliance | SAQ-D Level 1 certification required for handling card data |
| Technical Resources | Development team familiar with RESTful APIs and webhook handling |
| HTTPS Infrastructure | Secure endpoints for callbacks and webhook reception |
| API Credentials | Standard API Key and S2S API Key from your Precium dashboard |
This documentation suite consists of seven interconnected guides:
| Document | Description |
|---|---|
| Quick Start Guide | Get up and running quickly with basic payment scenarios |
| S2S Integration Guide | Complete reference for all 12 payment scenarios including 3DS, pre-authorization, refunds, and webhooks |
| Error Codes Reference | Comprehensive catalog of 80+ error codes with causes, actions, and retry guidance |
| Code Examples | Production-ready examples in Python, Node.js, PHP, Ruby, Java, C#, and Go |
| Technical reference documentation | API reference and detailed postman recipes for key requests |
| Document | Description |
|---|---|
| Glossary | Definitions for payment industry terminology and Precium-specific concepts |
| Troubleshooting Guide | Solutions for common integration issues across all payment scenarios |
| Testing Checklist | 65 test cases to validate your integration before going live |
Precium S2S supports a wide range of payment scenarios to meet diverse business needs:
flowchart LR
YS[Your Server] -->|API calls| PA[Precium API]
PA -->|Routes| CN[Card Networks]
YS <-->|3DS Flow| YF[Your Frontend]
PA -->|Real-time events| WH[Webhooks]
Key integration points:
| Endpoint | Method | Description |
|---|---|---|
/api/v1/clients/ | POST | Create a customer record |
/api/v1/purchases/ | POST | Initiate a new transaction |
/api/v1/purchases/{id}/ | GET | Retrieve transaction details |
/api/v1/purchases/{id}/charge/ | POST | Execute the payment |
/api/v1/purchases/{id}/capture/ | POST | Capture pre-authorized funds |
/api/v1/purchases/{id}/refund/ | POST | Process a refund |
/api/v1/purchases/{id}/cancel/ | POST | Void a transaction |
Base URL: https://gate.reviopay.com/api/v1/
Authentication: Bearer token in the Authorization header.
bash
curl -X POST https://gate.reviopay.com/api/v1/purchases/ \
-H "Authorization: Bearer $PRECIUM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"client": "cl_7Fq2mXd91",
"currency": "ZAR",
"amount": 149900
}'
All development and testing should be performed in the sandbox environment using test card numbers.
| Environment | Base URL |
|---|---|
| Sandbox | https://gate.reviopay.com/api/v1/ |
| Production | https://gate.reviopay.com/api/v1/ |
Note: Sandbox and production use the same base URL but different API credentials.
Integrating with Precium S2S requires adherence to strict security standards:
| Resource | Description |
|---|---|
| Technical Documentation | This documentation suite |
| API Reference | OpenAPI specification available in dashboard |
| Sandbox Testing | Full-featured test environment |
| Support Email | support@precium.com |
Ready to begin? Start with the Quick Start Guide to process your first test transaction in minutes.
For questions or support, contact us at support@precium.com.
