Open Source ยท MIT Licensed ยท Production Ready

Accept Payments
Everywhere. In Minutes.

PIX, Boleto, Credit Card, PayPal, and Crypto โ€” all from one unified API.
Drop it into any .NET or SvelteKit project and start collecting money today.

10,000+ Transactions Processed
<200ms Avg. API Response
99.9% Webhook Delivery
codeheroespay.dev/dashboard
Revenue (30d) R$ 47,382.50 +23.5%
Transactions 1,284 +12.1%
Success Rate 98.7% +0.3%
๐Ÿ”’ PCI-DSS Compliant โšก <1s Webhook Delivery ๐ŸŒŽ 5 Payment Providers

Payment Integration
Shouldn't Take Months

Every provider is a different world. Different APIs, different auth flows, different webhook formats. You deserve better.

๐Ÿ”ง

Fragmented APIs

Each provider has a different API, different authentication, different data formats. You're writing the same logic five times.

๐Ÿ“š

Weeks of Integration

Reading docs, handling edge cases, managing certificates, dealing with sandbox vs production environments. It never ends.

๐Ÿ’ธ

Silent Failures

Missed payments from webhook failures, duplicate charges, race conditions, and errors that nobody notices until customers complain.

Three Steps to Revenue

01

Install

One package. All providers included.

terminal
$ dotnet add package CodeHeroes.Payments

# or for the frontend
$ pnpm add @codeheroes/payments
02

Configure

Add your provider keys. That's it.

appsettings.json
{ "Payments": { "Providers": {
  "Pix":    { "ClientId": "..." },
  "Stripe": { "ApiKey":   "sk_..." },
  "Asaas":  { "Token":    "..." } } } }
03

Collect

One API call. Any provider. Done.

C#
var payment = await _payments
    .Create(new PaymentRequest
    {
        Provider  = Provider.Pix,
        Amount    = 149.90m,
        Customer  = customer,
        WebhookUrl = "/api/webhooks"
    });

Everything You Need.
Nothing You Don't.

๐Ÿ”—

Unified Payment API

One interface, all providers. Switch from PIX to Stripe by changing a single enum. No provider lock-in, ever.

โšก

Real-time Webhooks

Every payment event verified, normalized, and delivered instantly. Consistent payload format regardless of provider.

๐Ÿ“Š

Built-in Dashboard

Monitor revenue, transactions, and webhook health out of the box. Beautiful SvelteKit UI included.

๐Ÿ›ก

Battle-tested Security

HMAC and mTLS signature verification, encrypted credentials at rest, and comprehensive audit logging.

๐Ÿ”Œ

Drop-in Integration

Works with any ASP.NET Core or SvelteKit project. NuGet package and npm module ready to install.

๐Ÿ”„

Auto-retry & Idempotency

Never miss or duplicate a payment event. Built-in retry with exponential backoff and idempotency keys.

Every Payment Method
Your Customers Want

PIX via Efรญ Bank

1.19% per transaction
  • Instant settlement
  • QR Code + Copia e Cola
  • 24/7 availability

Boleto via Asaas

R$1.99 per boleto
  • Auto PIX QR included
  • Zero monthly fee
  • Auto-reminders

Credit Card via Stripe

3.99% + R$0.39 per charge
  • 135+ currencies
  • Radar fraud detection
  • 3D Secure ready

PayPal

Global coverage
  • 200+ countries
  • Buyer protection built-in
  • One-touch checkout

Crypto via NOWPayments

0.5% fee
  • 300+ cryptocurrencies
  • Direct to your wallet
  • No chargebacks

See the Difference

Before โ€” 200+ lines per provider
// Stripe
var stripeClient = new StripeClient(apiKey);
var svc = new PaymentIntentService(stripeClient);
var intent = await svc.CreateAsync(new PaymentIntentCreateOptions
{
    Amount = 14990, Currency = "brl",
    PaymentMethodTypes = new List<string> { "card" },
    Metadata = new Dictionary<string, string> { ... }
});

// Asaas Boleto
using var http = new HttpClient();
http.DefaultRequestHeaders.Add("access_token", token);
var resp = await http.PostAsJsonAsync(
    "https://api.asaas.com/v3/payments",
    new { billingType = "BOLETO", value = 149.90,
          dueDate = "2026-04-15", ... });

// EfI PIX - certificates, OAuth, QR...
var cert = new X509Certificate2(certPath, pwd);
var handler = new HttpClientHandler();
handler.ClientCertificates.Add(cert);
// ... 80 more lines of OAuth + token caching
// ... webhook signature verification per provider
// ... different error handling per provider
// ... retry logic, idempotency, logging...
After โ€” 10 lines. Any provider.
var payment = await _payments.CreateAsync(
    new PaymentRequest
    {
        Provider   = Provider.Pix,
        Amount     = 149.90m,
        Currency   = "BRL",
        Customer   = customer,
        WebhookUrl = "/api/webhooks",
        Metadata   = new { orderId }
    });

Built on Battle-Tested Libraries

CodeHeroes Payments isn't built in isolation. It leverages our proven open-source ecosystem.

๐Ÿ“ฆ

Starter-DotNet-Libs

The .NET foundation โ€” CQRS, error handling, domain primitives, and infrastructure patterns used in production by dozens of projects.

๐Ÿ”ฅ

CodeHeroesSvelteKit

The UI toolkit โ€” inputs, layouts, feedback components, and utilities that power the dashboard and checkout experience.

โœ…

Every Test Is Green

Every component is reusable. Every pattern is proven. Every test is green. Ship with confidence.

Open Source. Free Forever.

Start for free, scale when you're ready. No surprises.

Community
$0/forever
Perfect for indie hackers, side projects, and startups finding their footing.
  • โœ“ MIT Licensed
  • โœ“ All 5 payment providers
  • โœ“ Unlimited transactions
  • โœ“ Dashboard included
  • โœ“ Community support (GitHub)
  • โœ“ Webhook management
Get Started Free
Enterprise
Custom
For organizations with compliance requirements and custom needs.
  • โœ“ Everything in Pro
  • โœ“ On-premise deployment
  • โœ“ Custom integrations
  • โœ“ Dedicated engineer
  • โœ“ SOC 2 compliance support
  • โœ“ Invoice billing
Contact Sales

Got Questions?

Start Accepting Payments
in 5 Minutes

Join 500+ developers who've simplified their payment stack.

Get Started Free

No credit card required. MIT Licensed.