Skip to main content
Talk to an expert
Braintree logo

Braintree payment integration for ecommerce

Authorise at checkout, capture on confirmation, reconcile to ERP iWeb connects Braintree to your commerce platform and ERP so authorisation, capture and refund events stay aligned with order and financial records. Tokenised payments reduce checkout friction, settlement reconciliation is automatic, and chargebacks flow to dispute resolution in seconds, not days. Works with Adobe Commerce, Magento Open Source, Shopify Plus, BigCommerce and other storefronts.

Also searched as: payment connector, checkout plugin, app, extension.

BraintreeiWeb integration layeryour storefront
Works with - Adobe Commerce · Magento Open Source · Shopify Plus · BigCommerce · Other storefronts
01 · What you get

What a Braintree integration gives you.

Checkout and capture alignment

Payment authorisation happens at checkout, capture happens when order is confirmed. Your teams no longer dispute whether a charge is pending, settled or failed.

Finance reconciliation confidence

Braintree settlements flow to ERP as line items on customer accounts. Your accountants can match payouts to revenue recognition without manual lookup.

Refund and return clarity

Refunds process back to the original payment method and post to ERP as account credits in near-real time. Customers see refunds land in 1-3 days; finance sees the entry in the ledger the same day.

Shopper token reuse

Stored payment methods reduce checkout friction and PCI scope. Repeat customers log in, select a saved card, and pay in one tap; tokens stay current and never expose raw card data.

Chargeback and dispute ownership

Braintree notifies of chargebacks, iWeb routes them to your dispute workflow. Customer service, returns and finance each see the same chargeback record and can act in sequence without duplication.

02 · When it's worth it

Where a Braintree integration earns its place.

If two or more of these are true, the integration usually pays for itself quickly.

Route payment intent from checkout to Braintree, capture on order confirmation
Store and reuse customer payment tokens for subscription and repeat orders
Process refunds and partial refunds back to the original payment method
Reconcile settlement data and chargebacks against ERP ledger
Handle 3D Secure and SCA step-up authentication at checkout
Ingest PayPal wallet transactions alongside card payments in one flow
03 · The limits

Where off-the-shelf connectors fall short.

Vendor connectors are fine for simple cases. Here's where the real ones need more.

Capture timing and order state mapping

Braintree does not natively know when your order is confirmed or cancelled. Commerce must explicitly decide when to send capture instruction, map local order states to payment states, and handle voiding authorisations on order cancellation.

Refund and chargeback reconciliation

Braintree settlement reports do not auto-reconcile against ERP credit notes or customer account adjustments. Finance teams must manually match Braintree refunds to ERP transactions, identify discrepancies and post reversals.

Subscription and recurring payment logic

Braintree stores tokens but does not own subscription calendar, invoice generation or retry policy. Commerce must implement renewal timing, retry failures on declined cards and communicate billing events back to Braintree via custom plan setup.

Multi-currency and FX settlement

Braintree processes payments in local currency but does not natively split settlement between card scheme, local processor and PayPal. Multi-currency reconciliation to ERP nominal codes and FX variance tracking requires custom mapping.

Chargeback and dispute handling

Braintree webhooks notify of chargebacks but do not trigger return requests, inventory adjustments or customer communication. Commerce must build chargeback workflow integration with OMS, returns and customer service systems.

04 · The real work

The gap between authorisation and capture is where unmet expectations live: shoppersexpect to be charged when they see confirmation, but payment timing must align with inventory and fraud logic.

05 · Where it sits

Where this integration sits in your estate.

Braintree holds the commercial record. The iWeb integration layer manages the rules, mappings, monitoring and exceptions. The commerce platform presents the customer-facing experience. The estate map helps agree ownership before anything is built.

No platform lock-in. We integrate Braintree with the commerce core you already have, or the one you are moving to.

System of record
Source / owner
Braintree
Payment processor and authorisation authority
  • Card, PayPal and wallet authorisation and capture
  • PCI-compliant tokenisation and customer vault
  • Settlement batching and payout scheduling
  • Chargeback notification and metadata
  • 3D Secure and SCA challenge handoff
iWeb integration layer
Customer-facing commerce
Commerce platform
Adobe CommerceMagento Open SourceShopify PlusBigCommerceOther storefronts
  • Order state mapping (confirmed, cancelled, refunded)
  • Capture instruction timing and triggering
  • Refund eligibility and return workflow
  • Customer payment method selection and vault UI
  • ERP posting and reconciliation logic
Connected neighbours
Integration layer
ERP
Receives settled payments and refunds for ledger posting; source of truth for refund and credit policy
Integration layer
OMS
Sends order confirmation and cancellation events that trigger Braintree capture and void instructions
Integration layer
CRM
Receives tokenised payment methods and customer IDs; stores shopper payment preferences
Integration layer
Returns and dispute
Initiates refund requests; receives chargeback notifications and workflows dispute resolution
Integration layer
Customer service
Queries transaction history, refund status and chargeback records to service customer inquiries
Two-way sync where relevant
06 · Surrounding systems

Systems this integration usually sits next to.

Examples, not a closed list. iWeb is platform-agnostic on both sides: we wire this integration into whatever ecommerce platform and surrounding systems your estate already runs.

Ecommerce platforms (examples)
  • Adobe Commerce
  • Magento Open Source
  • Shopify Plus
  • BigCommerce
  • Other storefronts
Surrounding systems (examples)
  • ERP (inventory, orders, general ledger)
  • OMS (order confirmation, cancellation, returns)
  • PIM (product data)
  • CRM (customer profiles, loyalty)
  • Accounting system (invoice, credit note, reconciliation)
  • Dispute and chargeback management
  • Customer service platform
Not sure?

Not sure if this works with your stack?

Tell us what you’re using and what needs to connect. We’ll give you a straight view on what’s possible, what might be awkward, and the safest way to approach it.

07 · Data flows

The data flows we wire.

Each flow has a direction and an owner. We agree both before a line of code is written.

Into BRAINTREE
From BRAINTREE
BOTH WAYS
Payment authorisation and intent: Checkout sends cardholder details, amount and order ID to Braintree for authorisation
Braintree returns a nonce or token and authorisation status, which commerce logs and holds pending capture instruction.
Auth confirmation and risk signals: Braintree posts authorisation outcome, AVS result, 3D Secure enrolment and CVV match back to commerce
Commerce persists these signals for audit and uses them to trigger capture or decline workflows.
Capture and settlement instruction: Once order is confirmed (inventory reserved, fraud cleared), commerce sends capture instruction to Braintree with the auth token
Braintree moves funds from authorisation hold to settlement queue.
Settlement and transaction detail: Braintree batches settled transactions and sends settlement reports, payout summaries and transaction-level detail back to commerce and ERP for reconciliation and revenue recognition.
Refund and credit requests: Returns trigger a refund instruction from commerce or OMS to Braintree, which credits the original card or PayPal account
Refund confirmation flows back to commerce and ERP as a reconciliation and account-update event.
Tokenisation and vault storage: Checkout or account management sends shopper consent to store a payment method
Braintree vaults the token and returns a customer ID and payment method ID for reuse on future orders.
08 · How we build it

How iWeb configures the integration around your business.

Same method on every integration. The decisions come before the code.

  1. 01
    Capture timing and order state design

    iWeb maps your order states (confirmed, reserved, cancelled, refunded) to Braintree actions (capture, void, refund) so payment lifecycle matches ecommerce logic. Webhooks or polling keep Braintree and commerce in sync.

  2. 02
    ERP reconciliation and nominal codes

    iWeb extracts Braintree settlement detail, maps payment method and scheme to ERP account codes, and posts batched or line-level credits to the general ledger. FX, fees and chargebacks each receive their own nominal.

  3. 03
    Exception handling and runbooks

    iWeb builds queues for failed captures, refund timeouts and webhook delivery gaps. Operations teams get alerted to stale authorisations, unmatched refunds and duplicate-detected charges with clear remediation steps.

  4. 04
    Tokenisation and vault governance

    iWeb manages shopper consent, token lifecycle and payment method substitution so expired or compromised cards are refreshed before they decline a renewal. Token metadata syncs to CRM and customer service systems.

  5. 05
    Testing, rollback and observability

    iWeb implements sandbox parity testing, pre-launch checklists for 3D Secure and SCA, and a rollback path from Braintree to a previous gateway if needed. Logs capture every auth, capture and refund decision for audit.

09 · Ownership

Who owns what.

The single most important table in any integration. One system owns each field; everything else reads it.

Data
Source / owner
Maintained by
Notes
DataPayment methods enabled (card, PayPal, local wallets)
Source / ownerBraintree merchant account configuration
Maintained byFinance and payment operations
NotesCommerce platform does not own which payment methods are accepted; Braintree merchant settings are the authority.
DataAuthorisation, capture, refund instruction and status
Source / ownerBraintree transaction ledger
Maintained byCommerce platform and payment automation
NotesCommerce sends instructions to Braintree, Braintree is source of truth for transaction state; reconciliation logic lives in commerce.
DataSettlement and payout batch summaries
Source / ownerBraintree settlement reports and ERP ledger
Maintained byFinance operations
NotesBraintree produces settlement files, finance posts to ERP; reconciliation identifies mismatches between the two.
DataCustomer payment tokens and vault storage
Source / ownerBraintree customer vault and commerce customer database
Maintained byCommerce platform and Braintree
NotesBraintree holds tokenised card data and returns a customer ID; commerce holds relationship between shopper and Braintree customer ID.
DataRefund eligibility and return mapping
Source / ownerOMS order and returns records, ERP credit policy
Maintained byReturns and finance operations
NotesCommerce or OMS decides whether a return qualifies for refund; refund instruction is sent to Braintree only after approval.
DataChargeback notification and dispute metadata
Source / ownerBraintree chargeback ledger
Maintained byFinance and customer service operations
NotesBraintree notifies of chargebacks; commerce must log the notification and route to dispute workflow; Braintree is authoritative on chargeback status.
DataIntegration transport, error logs and monitoring
Source / ownerCommerce integration layer logs and monitoring platform
Maintained byIntegration and operations teams
NotesiWeb builds and owns the transport layer, logs and alerts; Braintree API logs are secondary diagnostic data.
10 · Experienced integrator

Built this before

iWeb has integrated Braintree across multiple commerce estates and understands how payment authorisation and capture timing must align with order confirmation, fraud and inventory logic.

iWeb designs capture timing to separate authorisation at checkout from capture on confirmation, preventing failed orders and floating charges.
iWeb routes Braintree settlement and refund events to ERP reconciliation, keeping finance in sync with payment reality.
iWeb implements webhook-driven and scheduled-polling patterns for Braintree state, choosing based on your monitoring and SLA requirements.
iWeb maps 3D Secure and SCA step-up flows so authentication is enforced where needed without abandoning secure checkouts.
iWeb builds exception queues for failed captures, refund timeouts and duplicate-detected charges so operations teams respond before customers notice.
11 · Before launch

What we test before launch.

Every one of these is rehearsed before a customer ever sees the integration.

Sandbox auth, capture, void and refund flows end-to-end; confirm Braintree state matches commerce order state after each step.
Test 3D Secure enrolment and SCA challenge flow; verify shopper is redirected and auth completes after successful challenge.
Verify idempotency: submit the same capture request twice and confirm only one charge appears in Braintree and ERP.
Confirm webhook delivery for capture confirmation and refund status; monitor webhook retry and timeout behaviour over 24 hours.
Run settlement reconciliation on a full batch; confirm settlement amount, fees and chargebacks post to ERP with correct nominal codes.
Test refund failure scenario (e.g. expired card); confirm queue logs failure, alerts operations and proposes fallback refund method.
Validate token storage and reuse on repeat order; confirm saved payment method is offered at checkout and charging uses the token.
12 · Failure points

Common risks and where they bite.

We name these on day one. A risk written down is a risk you can plan around.

Authorisation held but not captured

Checkout authorises payment but commerce never sends capture instruction (order cancelled, workflow broken, timeout on confirmation event). Auth hold expires after 3-5 days, fund authorisation is wasted, and shopper sees a temporary charge that disappears. iWeb routes order confirmation explicitly to capture and monitors age of open auths.

Capture succeeds but order fails

Payment captures to Braintree and settles, but order insertion fails or rolls back. Shopper is charged, but no order record exists. Customer service and finance are misaligned on whether the transaction is legitimate. iWeb enforces atomic order-and-payment commit or rolls back capture if order persistence fails.

Refund succeeds in Braintree but ERP does not post credit

Refund webhook is acknowledged in commerce, Braintree sends money back to card, but ERP credit note fails or is not sent. Customer sees refund land in bank, but accounting does not see the debit. Reconciliation breaks and customer service cannot explain the gap. iWeb queues refunds until ERP posts credit, then marks Braintree refund as reconciled.

Duplicate charges on webhook retry

Braintree webhook for capture confirmation is retried because commerce did not respond quickly. Commerce receives the retry, sees no idempotency key, and sends capture again. Shopper is charged twice. iWeb implements idempotency on all Braintree operations and deduplicates incoming webhooks by transaction ID.

Chargeback notification lost

Braintree notifies of chargeback via webhook, but the message is not persisted or the queue is not monitored. Finance discovers the chargeback weeks later when bank reconciliation fails. Customer record is not updated, and returns or dispute team does not see the chargeback to respond. iWeb logs all chargeback webhooks, alerts immediately and queues for dispute workflow.

3D Secure and SCA step-up mismatch

Checkout does not send 3D Secure nonce to Braintree, or Braintree requests SCA but commerce does not handle the challenge. Authenticated payment fails silently, shopper sees a generic error, and conversion drops. iWeb enforces 3D Secure enrollment checks, handles Braintree SCA handoff cleanly and logs every auth attempt.

14 · Questions

Common questions about Braintree integrations.

How does iWeb split authorisation and capture?

iWeb sends authorisation at checkout and capture when order is confirmed. This means payment is not taken until inventory is reserved and fraud checks pass. If order is cancelled before confirmation, the authorisation is voided and the shopper is not charged.

What happens if payment authorisation fails at checkout?

Braintree returns a decline code to commerce. iWeb logs the decline reason (insufficient funds, card expired, velocity limit, etc.) and displays a message to the shopper. The shopper can retry with a different payment method without creating a new order record.

How do refunds get back to the customer's original payment method?

iWeb sends the refund instruction to Braintree with the original transaction ID. Braintree credits the cardholder or PayPal account, and iWeb logs the refund as reconciled once ERP posts the corresponding credit note. The customer sees the refund in their bank or PayPal account within 1-3 business days.

Can we store customer payment methods for repeat orders?

Yes. iWeb manages Braintree's customer vault so repeat customers can check out by selecting a saved card without re-entering details. The shopper must consent to storage; iWeb enforces consent capture and can delete stored methods on request or if a card is compromised.

How does iWeb handle 3D Secure and SCA authentication?

iWeb enforces 3D Secure enrollment checks and sends the required nonce or lookup result to Braintree. For SCA step-up, iWeb receives the challenge URL from Braintree, redirects the shopper to authenticate, and completes the payment only after successful challenge.

What happens if Braintree is down or slow at checkout?

iWeb implements timeouts and fallback logic. If Braintree API is unreachable, checkout can either queue the authorisation for retry or decline the transaction with a customer-facing message. Post-launch, iWeb monitors Braintree API availability and alerts operations if degradation exceeds thresholds.

How does iWeb reconcile Braintree settlements with ERP?

iWeb extracts Braintree settlement files daily, maps payment methods and schemes to ERP nominal codes, and posts batched or line-level journal entries to the ledger. Each settlement batch is tagged with the Braintree batch ID so finance can audit back to Braintree if amounts mismatch.

What if a refund fails (e.g. card expired, account closed)?

iWeb queues the failed refund and retries it per the configured policy. If the refund is not refundable to the original method, iWeb alerts finance and routes the refund to a fallback method (e.g. store credit or manual bank transfer). ERP credit note is held pending final refund resolution.

How does iWeb detect and prevent duplicate charges?

iWeb implements idempotency keys on all Braintree requests (auth, capture, refund) and deduplicates incoming webhooks by Braintree transaction ID and timestamp. If the same transaction is submitted twice, iWeb returns the cached result instead of submitting to Braintree again.

How are chargebacks surfaced to the business?

iWeb logs all Braintree chargeback webhooks and queues them for dispute workflow. Customer service, finance and returns teams are notified immediately. iWeb tracks chargeback status (won, lost, pending) and can trigger return requests or account adjustments based on chargeback outcome.

Can we use Braintree for subscription and recurring billing?

Yes. iWeb manages token refresh on subscription renewal, handles failed payment retries with exponential backoff, and sequences billing events into your order and invoice systems. Braintree does not own the subscription calendar; iWeb manages renewal timing based on your subscription rules.

How does iWeb handle multi-currency transactions?

iWeb sends the transaction amount and currency code to Braintree, which processes the payment in that currency. Settlement is converted to your base currency by Braintree's processor. iWeb maps FX variance and scheme fees to separate ERP nominal codes so you can track hedging and settlement cost.

What logs and audit trails does iWeb maintain?

iWeb logs every authorisation request, response code, capture instruction, refund and webhook delivery to a secure audit trail. Logs capture shopper details (masked card, email), amounts, timestamps, Braintree transaction IDs and decision codes. Finance and compliance can retrieve logs for transaction disputes and reconciliation.

How does iWeb test Braintree integration before launch?

iWeb runs sandbox parity testing, validates 3D Secure enrollment and SCA flow, tests refund and chargeback webhook delivery, confirms ERP reconciliation on batched settlements, and executes a rollback plan if Braintree must be swapped for another gateway. Pre-launch checklists cover data format, timeout handling and exception routing.

Next step

Have a Braintree integration brief?

Send the brief, or tell us what is breaking. You will get a written response from a senior expert: the integration boundary, the realistic shape, the risks worth naming, and what it takes to support after launch.
Talk to an expertOr browse all integrations →