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)
- Secure API key management
- 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 Bloque SDK
- Bloque API returns a checkout ID
- Frontend renders the hosted checkout in an iframe
- User completes payment securely
Packages
The Bloque Payments ecosystem consists of two main packages:
Backend SDK (@bloque/payments)
Server-side SDK for creating checkouts:
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
- Webhooks - Handle payment events