Introduction
Welcome to Bloque Payments documentation. Bloque provides a comprehensive payment infrastructure that enables developers to accept credit and debit card payments.
What is Bloque Payments?
Bloque Payments is a TypeScript-first payment processing platform that simplifies payment integration into your web applications. It provides a backend SDK for secure payment processing and React components for seamless checkout experiences using a hosted checkout page.
Key Features
Hosted Checkout
Bloque uses a secure hosted checkout approach where payments are processed through an iframe. This ensures PCI compliance without handling sensitive card data on your servers.
React Integration
Pre-built React components for quick integration:
Secure by Default
PCI-compliant infrastructure with:
- Hosted checkout iframe (card data never touches your servers)
- Three-credential API key model (secret key, publishable key, client secret)
- 3D Secure authentication for card payments
- Webhook signature verification
- End-to-end encryption
Customizable UI
Customize the checkout appearance to match your brand:
Type-Safe
Built with TypeScript from the ground up:
- Full type definitions included
- IntelliSense support in modern editors
- Compile-time type checking
Architecture
Bloque Payments follows a secure architecture pattern:
- Your Backend creates checkout sessions using the secret key (
sk_live_...) - Bloque API exchanges the key for a JWT and returns a checkout ID + client secret
- Frontend renders the hosted checkout using the publishable key (
pk_live_...) + client secret - User completes payment securely (with 3D Secure if required)
Packages
The Bloque Payments ecosystem consists of two main packages:
Backend SDK (@bloque/payments)
Server-side SDK for creating checkouts and processing payments:
React Components (@bloque/payments-react)
Hosted checkout component for React:
Why Bloque Payments?
Developer Experience
- Clear, comprehensive documentation
- Practical examples for common use cases
- Intuitive API design
- TypeScript-first approach
Production Ready
- Battle-tested in production
- Comprehensive error handling
- Detailed logging and debugging support
- Webhook support for real-time updates
Flexible Integration
- Works with React and Next.js
- Supports Node.js and Bun
- Minimal dependencies
Next Steps
Ready to integrate payments? Follow our Quick Start guide to accept your first payment in minutes.
- Quick Start - Get up and running quickly
- React Integration - Use BloqueCheckout component
- Checkout API - Create hosted checkout pages
- 3D Secure - Add 3D Secure authentication
- Webhooks - Handle payment events