Overview of Mercado Pago integrations in Next.js
mainThis repository provides various implementation patterns for integrating Mercado Pago into a Next.js application using the App Router. The primary use case demonstrated is a messaging application where users must pay or subscribe to post messages.
Available integration patterns include:
- Checkout Pro: Creates a payment preference and redirects the user to the Mercado Pago hosted checkout page. Includes webhook configuration for payment verification.
- Subscriptions: Implements subscription models (without an associated plan and with pending payments) and uses webhooks to handle subscription notifications.
- Checkout Bricks: Uses Mercado Pago's 'Bricks' to collect payment information directly within your application's UI.
- Marketplace (Split Payments): Acts as an intermediary between a buyer and a seller (e.g., a user wanting to post on someone else's wall), using Checkout Pro to split payments and retain a commission.
- Checkout API: Provides the highest level of UI control by using custom components and the Mercado Pago React component library to process payments securely and compliantly within your own platform.