FramePay
FramePay is a secure, PCI-compliant payment integration solution that allows you to collect payment information without handling sensitive card data directly. By using secure iframes, FramePay ensures your customers' payment information is protected while providing a seamless checkout experience.
What is FramePay?
FramePay is a client-side payment form solution that:
- 🔐 Maintains PCI Compliance - Sensitive card data never touches your servers
- 💳 Supports Multiple Payment Methods - Cards, Apple Pay, Google Pay, and PayPal
- 🎨 Customizable - Style payment fields to match your brand
- ⚡ Fast Integration - Get started in minutes with our guides
- 🌍 Global Ready - Support for multiple currencies and countries
How It Works
Key benefit: Your server never sees or handles raw card data, reducing PCI compliance scope.
Quick Start
1. Add FramePay to Your Page
<link href="https://framepay.payments.ai/framepay.css" rel="stylesheet" />
<script src="https://framepay.payments.ai/framepay.js"></script>
2. Initialize
Framepay.initialize({
publishableKey: 'pk_sandbox_YOUR_KEY',
organizationId: 'org_YOUR_ORG',
websiteId: 'web_YOUR_WEBSITE',
transactionData: {
currency: 'USD',
amount: 99.99
}
});
3. Mount Payment Fields
Framepay.on('ready', function() {
Framepay.card.mount('#card-number');
});
4. Create Token
const token = await Framepay.createToken(form, {
billingAddress: {
firstName: 'John',
lastName: 'Doe'
}
});
That's it! See our Complete Example for a full implementation.
Documentation
Getting Started
- 📖 Client-Side Integration - Complete guide to integrating FramePay on your frontend
- 🔐 Backend Integration - How to process tokens and complete payments on your server
- 🎯 Complete Example - Full working implementation with frontend and backend code
Core Concepts
- 🔄 Payment Flows - Understanding card vs wallet payment processing
- 🔒 CSP Configuration - Setting up Content Security Policy headers
API Reference
- 📚 FramePay API Reference - Complete API documentation
- ⚡ Events - Event handling guide
- 💳 Express Methods - Apple Pay, Google Pay, and PayPal integration
Tutorials
- 👤 Create Customer with Payment Instrument - Step-by-step tutorial
- 🔑 Account & API Keys Guide - Get your credentials
- 🔔 Webhook Setup - Configure payment notifications
Payment Methods Supported
Card Payments
Accept all major credit and debit cards:
- 💳 Visa
- 💳 Mastercard
- 💳 American Express
- 💳 Discover
- 💳 And more...
Digital Wallets
Provide express checkout options:
- 🍎 Apple Pay - One-tap payments on Apple devices
- 🔵 Google Pay - Fast checkout with Google
- 💙 PayPal - Popular payment platform
Features
Secure by Design
- PCI DSS Level 1 compliant
- End-to-end encryption
- Tokenization of sensitive data
- Secure iframe implementation
Developer Friendly
- Simple JavaScript API
- TypeScript support (via npm package)
- Comprehensive documentation
- Working code examples
Customizable
- Match your brand styling
- Custom CSS support
- Flexible form layouts
- Light and dark mode support
Global
- Multi-currency support
- International card support
- Localization ready
- Global payment methods
Prerequisites
Before integrating FramePay, you'll need:
- Payments AI Account - Sign up if you don't have one
- API Credentials:
- Publishable Key (for frontend)
- Secret API Key (for backend)
- Organization ID
- Website ID
- Basic Web Development Knowledge - HTML, JavaScript, and backend development
Get your credentials from the Payments AI Dashboard.
Browser Support
FramePay works in all modern browsers:
- ✅ Chrome 60+
- ✅ Firefox 55+
- ✅ Safari 11+
- ✅ Edge 79+
- ✅ Mobile browsers (iOS Safari, Chrome Mobile)