Developer Documentation
Everything you need to integrate PureCheckout into your platform, from basic setup to advanced customization.
Getting Started
Quick start guide to set up your first membership gate
API Reference
Complete API documentation and code examples
Integration Guides
Step-by-step guides for popular platforms
Security & Compliance
Security best practices and compliance information
Analytics & Reporting
Understanding your verification data and reports
Advanced Features
Power user features and customization options
Code Examples
Basic Verification Check
JavaScript// Check if user has valid membership
const response = await fetch('/api/verify', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
userId: 'user123',
contentId: 'premium-article-1'
})
});
const result = await response.json();
if (result.verified) {
// Show premium content
showPremiumContent();
}Webhook Handler
PHP<?php
// Handle verification webhook
$payload = file_get_contents('php://input');
$data = json_decode($payload, true);
if ($data['event'] === 'verification.completed') {
$userId = $data['user']['id'];
$membershipId = $data['membership']['id'];
// Update user membership status
updateUserMembership($userId, $membershipId);
}
http_response_code(200);
echo 'Webhook processed';
?>Quick Links
Need Help?
Can't find what you're looking for? Our developer support team is here to help you succeed.