Skip to content

Conversation

@igorbenav
Copy link
Collaborator

No description provided.

@igorbenav igorbenav added the enhancement New feature or request label Oct 7, 2023
@igorbenav igorbenav self-assigned this Oct 7, 2023
@igorbenav igorbenav merged commit 268a4bc into main Oct 7, 2023
@igorbenav igorbenav deleted the posts branch October 7, 2023 05:41
jdbaigorria pushed a commit to jdbaigorria/FastAPI-boilerplate that referenced this pull request Nov 13, 2025
Implement comprehensive billing extension with support for multiple
payment providers (Stripe and MercadoPago) to enable SaaS applications
to accept payments in Latin America.

Key features:
- Payment provider abstraction with unified interface
- MercadoPago provider implementation with preapproval (subscriptions)
  and preference (one-time payments) support
- Stripe provider implementation for global payment processing
- Factory pattern for provider selection per tenant
- Webhook endpoints for both Stripe and MercadoPago IPN
- Database models for billing configuration, subscriptions, and payments
- Multi-currency support (USD, ARS, MXN, BRL, CLP, COP, UYU)
- Comprehensive documentation with setup guides and examples

Changes:
- Add billing extension directory structure
- Create PaymentProviderInterface base class
- Implement StripeProvider and MercadoPagoProvider
- Add PaymentProviderFactory for provider instantiation
- Create billing router with webhook endpoints
- Add TenantBillingConfig, Subscription, and Payment models
- Update config with Stripe and MercadoPago settings
- Add stripe>=7.0.0 and mercadopago>=2.2.0 dependencies
- Create .env.example with payment provider configuration
- Add comprehensive README with setup instructions

Related to PRD benavlabs#3: MercadoPago Payment Provider
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants