Seamless Integration
Integrate with your existing systems in minutes, not months. Our flexible APIs and SDKs make implementation quick and easy for any platform.
// Initialize Treaty Pay with your API key
const treatyPay = new TreatyPay({
apiKey: 'your_api_key',
environment: 'production'
});
// Create a payment session
const session = await treatyPay.createSession({
amount: 1000, // $10.00
currency: 'USD',
customer: {
email: 'customer@example.com'
},
successUrl: 'https://your-site.com/success',
cancelUrl: 'https://your-site.com/cancel'
});
// Redirect to payment page
window.location = session.url;
Developer-First Design
Our API follows RESTful principles with clear documentation, versioning, and comprehensive SDKs in major programming languages.
Extensive documentation with code examples
SDKs for JavaScript, Python, PHP, Ruby, Java, and more
Webhooks for real-time event notifications
Test mode for development and staging environments
Dedicated developer support team
React
Node.js
Python
Ruby
PHP
Java
.NET
iOS
Android