Skip to content
For Business Owners

Banking Integration in Your System: Pix, Boleto, Card, Split, and Webhooks in Practice

By Ana da Forcoder7 min read

Banking integration seems simple on paper: generate a boleto, receive a Pix, settle an invoice. In practice, each bank has a different API, a unique way of authenticating, expiring certificates, webhooks that arrive twice (or not at all), and responses that aren’t always clear about whether the operation succeeded. A system that handles money needs to be designed for these situations.

This article shows what Forcoder has integrated in payments and banks—across LogFrota, Nexus Finanças, FunnelMax and our own online store—and what separates a reliable banking integration from one that causes extra work for your financial team.

Which Banks and Payment Methods We've Worked With

The list below comes straight from our systems' code. We’ve separated what's running in production from what's ready based on official documentation and awaiting a customer credential for the first real call—because being honest here prevents surprises at go-live.

Asaas

Collections via boleto, Pix, and card, recurring subscriptions, and webhooks with auto-settlement. Running in production for LogFrota subscriptions and the Forcoder store checkout; it’s also used for collecting Omnichannel Forcoder subscriptions.

Whitelabel and BaaS

Nexus Finanças is a banking platform based on Asaas’s whitelabel: subaccounts for partners, Pix, transfers, boletos, charges, and value split between accounts.

Traditional Banks

For LogFrota’s financial module: Sicoob in production, and Banco do Brasil, Bradesco, Santander, Itaú, Sicredi, and QI Tech with charges, Pix, or account statement implemented through official APIs.

Stripe

In FunnelMax: subscription, plan, trial period, cancellation, and revenue sharing with partners via Stripe Connect.

Pix, Boleto, and Card: What’s Different for Each

Registered Boleto

Boleto processing involves registration at the bank, and this registration isn’t always instant. In one integration, the bank responded that it accepted the request before the clearinghouse confirmed the registration. If the system treats “accepted” as “registered,” the client could receive a boleto that doesn’t exist. That’s why the status remains pending registration until a scheduled check confirms or denies it.

We also implemented boleto amendment and extension directly through the system, instead of canceling and issuing a new one, and hybrid boletos with Pix QR Code where the bank offers it.

Pix

With Pix, charges can be instant or due at a later date, and confirmation arrives via webhook. In the Forcoder store, the Asaas checkout offers Pix, boleto, and card. In LogFrota, Pix is embedded in the boleto or issued as its own charge at banks that provide a Pix API.

Credit Card

Cards have one non-negotiable rule: data can’t be saved, logged, queued, or returned by the API. In our store’s checkout, card details in the transparent checkout pass only through memory, straight to Asaas. This architectural decision reduces system risk and compliance scope.

Idempotent Webhooks: The Heart of Integration

The bank notifies of payments via webhook. The problem is, the same notification might arrive more than once, out of order, or delayed. A naïve system could settle a payment twice, unlock access that was already canceled, or lose a chargeback.

The pattern we use across our products is the same:

  1. Check the sender. Webhooks are only accepted with the token configured on the bank or gateway dashboard; any other source is rejected.
  2. Save and respond fast. The event is recorded in a dedicated table, and the bank receives an immediate response—without waiting for business rules to run.
  3. Process via queue. A job applies the business rule, and processing the same event twice yields the same result.
  4. Re-query the source. In the Forcoder store, before settling, the system checks the payment directly with the Asaas API—the webhook payload is just a trigger.
  5. Reprocess on failure. Events with errors are automatically retried on a scheduled routine, with no manual action needed.

In Nexus Finanças, this rule is explicit in the code: money leaving isn’t final. The final state of a transfer comes via webhook, and the UI shows “processing” until that arrives.

Split, Subaccounts, and BaaS

When a platform collects funds on behalf of multiple partners, the money needs to be split. In Nexus Finanças, the collection is issued by the main account and Asaas splits the net amount among partner subaccounts. Each partner has their own account, with Pix, transfers, and statements, and Asaas appears as the service provider, as required by Central Bank rules for this setup.

The same subaccount architecture was applied in the ValuERP financial module for stores, employees, and suppliers, an internal ledger that only adds entries and debits before transfers, with automatic reversal on failure.

Bank Reconciliation and Statements

Receiving money is half the job. The other half is matching what the bank reports with what the system logged. In LogFrota, reconciliation reads statements via API where the bank provides one (Banco do Brasil, Bradesco, Itaú, and Sicredi are implemented), or imports OFX or spreadsheets when no API exists, and uses the Pix participant list and Central Bank’s PTAX for foreign currency.

There's also a screen for payments received via Asaas without a matching invoice in the system, suggesting which invoice it likely matches so the operator can link them with one click.

Certificates, Tokens, and Security

More robust bank APIs require mutual authentication with certificate (mTLS), in addition to OAuth tokens. This means handling certificates issued by the bank, a company’s A1 certificate, PEM conversion, and renewals. In our systems:

  • API keys are encrypted in the database and never included in any API response;
  • bank call logs never store headers (where the key is sent);
  • production database copies for development have all keys neutralized;
  • in development, integration runs in simulation, and no real data leaves the machine.

Checklist for Hiring a Banking Integration

  • The webhook is idempotent and protected by token or signature
  • There is re-querying or scheduled checking when a webhook isn’t triggered
  • Bank timeout and errors don’t result in duplicate charges
  • Card data is never stored anywhere
  • Keys are encrypted and never stored in logs
  • Reconciliation reads statements via API or file
  • There's a test (sandbox) environment before production

Why Credentials Usually Take Longer Than Code

Almost every banking integration stalls at the credentialing, not the code: developer portal registration, certificates, product activation on the client’s bank account, and homologation. The first real API call often reveals a field the docs didn’t mention. We include this in the project plan and never promise a short timeline for something that depends on a bank.

If your system needs payment gateway integration or to connect with your bank, Forcoder has already handled that in products moving money every day. See also how we handle taxation in tax issuing systems.

Talk to those who’ve integrated before

Contact us or send us a message on WhatsApp. Tell us which bank or gateway you use and what you need to automate: collection, settlement, reconciliation, or split payments.

Frequently Asked Questions

Do you integrate with my bank?

If the bank has an API for collections, Pix, or statements, yes. We’ve worked with Asaas, Sicoob, Banco do Brasil, Bradesco, Santander, Itaú, Sicredi, and QI Tech. For other banks, we review the official documentation before proposing.

Is it better to use a gateway or integrate directly with the bank?

Gateways like Asaas speed up deployment and already provide Pix, boleto, card, and webhooks. Direct bank integration often has lower per-transaction costs but requires certificates, homologation, and more maintenance. The choice depends on your transaction volume and where your company already banks.

Can you split payment between partners?

Yes. We’ve done this via split and subaccounts using Asaas’s whitelabel in Nexus Finanças, and with Stripe Connect in FunnelMax.

What happens if the bank’s webhook doesn’t arrive?

In our systems, there’s a scheduled process that queries the bank for paid items and automatic reprocessing of failed events.

Keep reading

Products by Forcoder and our clients

Software Forcoder built and maintains, for itself and for its clients.

Client case

Nexus Finanças

Banking as a Service (BaaS) platform for Nexus Finanças: a digital account for each partner, with Pix, transfers, bill payments, charges with automatic split and cards, admin and partner dashboards, plus the company's corporate website.

Client case

Torela Real Estate

Real estate portal and system for Torela, in Gramado, Canela and the Rio Grande do Sul coast, integrated with Loft: listings reach the website without double entry, with search by region, city and neighborhood, property pages with photo galleries, favorites, comparison, vacation...

Client case

Permute-se

An asset-matching social network: properties and vehicles with compatibility-based matches, private proposals, a nationwide feed, wanted listings and subscription plans, on the web and in apps published on the App Store and Google Play.

Have a project in mind? Let's make it happen.

Custom websites, systems and integrations, focused on results. Tell us what you need and the Forcoder team will get in touch.