Hyperswitch Braintree integration

Connecting Braintree to a self-hosted Hyperswitch stack, covering credentials, PayPal through Braintree, saved cards, webhooks and the checks that confirm the setup works before go-live.

On this page

How to plan a Hyperswitch Braintree integration

This section is for teams that already run a Braintree merchant account and want to route that traffic through a self-hosted Hyperswitch stack. The work adds Braintree as a connector in Hyperswitch, so payments can be initiated through Hyperswitch while Braintree remains the acquirer or processor of record. Before you scope anything, confirm the exact connector name, the flows it supports and the credential fields it expects against the current Hyperswitch connector documentation and Braintree's own API documentation, because both change between releases. This page is a planning guide. It does not promise any specific connector feature.

The integration splits ownership across three parties. Your team owns the Braintree account, the API credentials, the Hyperswitch deployment, the merchant configuration in the Control Center and the decision about which traffic reaches Braintree. The implementation partner, if you use one, owns the connector configuration, the webhook endpoint wiring and the test plan against your environment. Braintree owns the processing behavior and the rules of its API. Write down who holds each credential, where it is stored and who can rotate it, because a Braintree connector in a self-hosted stack adds a second place where those secrets live.

Plan the scope around the features you actually depend on today. Inventory how your current direct Braintree integration handles card payments, PayPal, saved payment methods, refunds, partial captures and webhooks, then confirm each one against what the Hyperswitch Braintree connector documents. Any gap becomes a decision: accept the change, keep that flow on a direct integration during a transition, or build the missing piece. Treat the webhook and vault behavior as the highest-risk items, since they determine how saved cards and asynchronous status changes reach your systems, and ask for a written list of supported and unsupported flows before the quote is finalized.

What you need in place before connecting Braintree

Six prerequisites have to be ready in parallel before any Braintree credential goes into Hyperswitch. Each one fixes a decision that the connector setup depends on, so settle them early rather than during the build.

A running, pinned Hyperswitch deployment

Hyperswitch is maintained by Juspay under Apache 2.0, and its releases ship roughly monthly. Choose one minor version, pin the router, Control Center and client SDK versions to the compatibility matrix in the release notes, and record the choice. Confirm that the Superposition configuration dependency required by v1.124.0 and later is running before you upgrade. A connector configured on one version can behave differently after an upgrade, so test Braintree on the pinned version first.

Hyperswitch releases

Braintree sandbox and production accounts

Get separate Braintree sandbox and production accounts, and confirm with Braintree's current documentation which API credential types exist, what each one is called, and which environment names Hyperswitch expects. Create credentials with the narrowest permissions your team can use, and record who owns each key. Keep sandbox and production credentials in different secret stores so a test key cannot move real money.

Control Center admin role and SSO

Plan who will configure the Braintree connector in the Hyperswitch Control Center and which role they hold. Users must be invited first, and roles are managed inside Hyperswitch rather than mapped from your identity provider. If you use SSO, note that the Control Center supports OpenID Connect only, not SAML, and that there is no JIT or SCIM provisioning. Confirm these limits against the current SSO documentation before you commit to a login model.

SSO setup guide

Vault model decision

Decide where card data will be stored before you enable any card flow for Braintree. Hyperswitch documents three self-hosted vault models: the native in-house PCI vault, orchestration with an external PCI vault provider, and orchestration with the SaaS Hyperswitch Vault. The in-house model makes you fully responsible for PCI DSS certification and data handling. Choose the model with your compliance team, because it determines whether raw card data ever reaches your Hyperswitch router.

In-house PCI model

Outbound and inbound network paths

The Hyperswitch router must reach Braintree's API endpoints for the environment you use, and Braintree must reach a public HTTPS endpoint on your deployment to deliver webhooks. Ask your network team to allow outbound traffic from the router pods or hosts, and confirm the webhook URL, ingress path, TLS certificate and any egress proxy or allow-list rules. Test both directions in sandbox before go-live, because a blocked webhook often looks like a payment that never settles.

A sandbox card test plan

Write the test plan before you configure the connector. Cover successful authorizations, declines, 3-D Secure challenges where Braintree applies them, captures, partial and full refunds, voids, saved cards, and PayPal through Braintree if you offer it. Use the sandbox test card numbers that Braintree publishes in its current documentation, and record the expected Hyperswitch payment status for each case. Agree on who signs off each result before production credentials are added.

How a Braintree payment flows through Hyperswitch

The payment starts in the merchant's client, which calls the Hyperswitch API or an SDK with the order and payment details. The Hyperswitch router applies its routing rules to choose Braintree, sends the request to the Braintree connector, and returns Braintree's response to the merchant. Braintree sends its webhooks back to the router, so check that they reach the router and update the payment status. Card data stays in the card vault, which sits on its own trust boundary, separate from the router.

Request, routing, Braintree connector calls, webhooks and the separate card vault boundary.

Configuration sequence for the Braintree connector

This sequence takes a self-hosted Hyperswitch stack from a Braintree sandbox account to a tested connector that handles payments, refunds and webhooks, with each step closed by a check. It is meant for the team that will later move the same setup into production.

  1. Confirm the connector and release version

    Before you configure anything, check the Hyperswitch docs and the release notes for the version you run to confirm that a Braintree connector is listed and supported. Also check the compatibility matrix on the GitHub releases page for the Control Center and any web client versions you use, since these must match your router. If you are upgrading to v1.124.0 or later, confirm that a Superposition service is already running, because the v1.124.0 release notes make it a required dependency. Done means you have written down the Hyperswitch version, the connector name and the matching Control Center version in your change record.

  2. Create least-privilege sandbox credentials

    In the Braintree sandbox, create the API credentials Hyperswitch will use, with the narrowest permissions your Braintree account allows for payments, refunds and the flows you plan to enable. Use a dedicated sandbox user or API key so that revoking it does not affect your developers' own access. Keep the sandbox and production credentials in separate records, and never reuse a sandbox secret in production. Confirm the exact permission names with Braintree support or its current documentation, since these settings vary by account type. Done means the credentials work in a direct sandbox API call outside Hyperswitch and their permission scope is recorded.

  3. Add the Braintree connector

    Add Braintree as a connector in the Hyperswitch Control Center for the test merchant account, or send the equivalent connector creation request through the Hyperswitch API if your team manages configuration as code. Choose the connector variant that matches your Braintree account setup and the flows you need, and leave payment methods disabled until a later step. Record the connector identifier and the profile it is attached to, because routing and webhook URLs refer to them. Done means the connector appears in the merchant's connector list, is marked as not yet live for routing, and the creation request returned a success response in your logs.

  4. Enter credentials for each environment

    Enter the sandbox credentials in the Braintree connector for the sandbox environment only, and keep production credentials out of the sandbox profile entirely. If your deployment uses separate Hyperswitch profiles or stacks for each environment, map each profile to its own Braintree environment and confirm that no profile points at the wrong Braintree environment. Store the secrets through the secret handling your platform team has approved, not in shared configuration files or tickets. Done means a connector verification or test call succeeds in sandbox, and a review of the stored configuration shows no production secret in the sandbox profile.

  5. Register webhooks and verify signatures

    In Braintree, register the webhook endpoint that points to your Hyperswitch deployment for the connector, using the URL your environment generates for that connector. Subscribe only to the notification types your enabled flows need, such as payment and refund status changes. Then confirm that Hyperswitch verifies Braintree's webhook signatures by sending a deliberately altered test notification to the endpoint. Done means a valid sandbox notification is accepted and recorded, and the altered notification is rejected with a signature error, which confirms the verification is active.

  6. Enable PayPal through Braintree only if supported

    Enable PayPal through Braintree only after you confirm two things: the Hyperswitch connector documents PayPal as a supported method for Braintree in your release, and your Braintree account is provisioned for PayPal. Ask Braintree and your Hyperswitch contact which PayPal flows are covered, such as checkout or vaulting, and whether any separate PayPal account setup is required. Enable one flow at a time in sandbox. Done means a sandbox PayPal test payment completes through the connector, and the flows you did not confirm remain disabled in the configuration record.

  7. Route only intended traffic to Braintree

    Configure routing so Braintree receives only the traffic you have assigned to it, using rule-based routing or the default fallback behavior that Hyperswitch documents for cases where no rule applies. Do not leave Braintree in a default fallback position unless you intend it to receive that traffic, because an unmatched payment would then reach it. Review the routing strategies in the Hyperswitch intelligent routing docs before choosing one for a multi-processor setup. Done means a test set of sandbox payments with different attributes goes to the intended connector in every case, and payments outside the rules do not reach Braintree.

  8. Run sandbox payment, refund and webhook replay

    Run a sandbox payment, a partial or full refund and a status change through the Hyperswitch API, then confirm the transaction appears in both Hyperswitch and the Braintree sandbox with matching identifiers and amounts. Next, replay a previously delivered webhook notification to confirm that Hyperswitch handles duplicates without changing the payment status a second time. Record each test with its identifiers so the same script can run again after upgrades or credential rotations. Done means every test matches across both systems, the replay causes no duplicate state change, and the results are stored as the baseline for production go-live checks.

How Braintree objects map to Hyperswitch fields

This table pairs each Braintree object with its likely Hyperswitch counterpart, the team that owns it, and what to confirm. Treat every Hyperswitch field name and Braintree identifier as an item to verify against the current Braintree connector documentation before you build, since the connector mapping is not covered by the researched facts. The main takeaway is that identifiers, refunds, voids and webhook statuses need a written translation table agreed by engineering and finance.

Braintree objectHyperswitch object or fieldOwnerNotes
Transaction IDPayment ID and connector transaction reference (verify field name)Platform engineeringStore the Braintree transaction ID as the connector reference so refunds and reconciliation can match it. Confirm the exact field in the connector docs.
Customer IDCustomer object in Hyperswitch, linked to the Braintree customer (verify)Platform engineeringDecide whether Hyperswitch or Braintree owns the customer record. Mismatched customer IDs break saved payment lookups.
Payment method tokenSaved payment method or connector mandate reference (verify)Payments engineeringBraintree vault tokens tie saved cards to Braintree. Confirm how Hyperswitch stores and reuses them before migrating any cards.
RefundRefund object linked to the original payment (verify)Finance operationsMap partial refunds and the link to the original Braintree transaction. Confirm how refund status is reported back.
VoidCancel or void action on an uncaptured payment (verify)Payments engineeringBraintree voids and Hyperswitch cancel actions may not behave the same for settled transactions. Test both paths.
Merchant account ID per currency or regionConnector account per currency or region in Hyperswitch configuration (verify)Finance operationsEach Braintree merchant account ID needs a matching connector entry. Confirm currency and country restrictions for each one.
Webhook event typesHyperswitch webhook events (verify event names)Platform engineeringBuild a list of Braintree notifications you receive today and confirm which Hyperswitch events cover them. Do not assume one to one coverage.
Transaction status valuesHyperswitch payment status values (verify)Payments engineeringBraintree statuses such as authorized, submitted for settlement and settled need a documented translation into Hyperswitch statuses before reporting depends on them.

What changes from a direct Braintree integration

In a direct Braintree integration, your application holds Braintree API credentials and calls the Braintree SDK directly for every transaction. With Hyperswitch, the Braintree credentials are entered as connector configuration in Hyperswitch, and your application calls the Hyperswitch API instead. Braintree merchant accounts, merchant account IDs and currency settings still live in the Braintree control panel, so Braintree remains the source of truth for what each account can process.

  • Credential location: Braintree keys move from application secrets into Hyperswitch connector settings, so the secret store and access model for those keys change.
  • Merchant account mapping: Each Braintree merchant account you route to must be mapped in Hyperswitch, and mismatches between currency and account surface as failed authorizations.
  • Retained in Braintree: Account approvals, sub-merchant setup, fraud rules and dispute workflows remain in Braintree.
  • New duty: Your team owns the Hyperswitch environment, the Control Center users who can view or change connector settings, and rotation of Braintree keys across both systems.
  • Upgrades: Hyperswitch releases can change connector behavior, so test each upgrade against a Braintree sandbox before production.

Confirm with the current Hyperswitch Braintree connector documentation exactly which credential fields are required and how environment (sandbox or production) is selected. Check the Hyperswitch docs at Hyperswitch docs before you finalize your key management design.

Security controls for a Hyperswitch Braintree integration

A Braintree connector puts merchant credentials, webhook endpoints and admin rights into one self-hosted stack. The six controls below cover where those secrets live, which keys reach production, how inbound events are trusted, who can change connector settings, what logs keep, and how the vault model sets your PCI DSS scope.

Store and rotate Braintree credentials

The Braintree private key and merchant credentials should live in a secrets manager you control, never in Helm values, Git repositories or Control Center screenshots shared with colleagues. Decide who can read the secret, how rotation is scheduled and how a rotated key reaches the Hyperswitch router without a long outage. Ask your team to confirm how the connector configuration is populated in your deployment and whether a rotation requires a redeploy. Test rotation in the sandbox before the first production key is issued.

Self-hosting docs

Separate sandbox and production keys

Braintree issues separate credentials for sandbox and production environments, and a sandbox key should never be able to move live money. Keep the two connector configurations in separate Hyperswitch environments with separate Control Center accounts, and check that a test deployment cannot point at the production Braintree merchant ID. Confirm with Braintree which API key scope and permissions your integration needs, and remove any unused or broader keys after go-live.

Verify webhook signatures and allowlist senders

Braintree webhooks reach your Hyperswitch endpoint over the internet, so the router must verify each notification's signature before it changes payment state. Pair signature checks with an inbound allowlist at your load balancer or ingress so that only expected sources can reach the webhook path. Test a forged or altered payload in the sandbox and confirm it is rejected and logged. Confirm the exact verification behavior for your Hyperswitch version in the connector documentation.

Limit who can change connector settings

Anyone who can edit a Braintree connector in the Control Center can redirect traffic, change merchant accounts or expose credentials. Assign connector-management rights to a small named group, separate them from payment viewing and refund roles, and require a second approver for production changes. Hyperswitch manages roles inside the platform, so review the role list on a schedule and remove accounts for people who leave. Confirm how Control Center audit history records these edits in your version.

Keep card data and secrets out of logs

Application logs, reverse proxy logs, tracing data and Scheduler queue entries can capture request bodies that contain payment details or tokens. Define a log policy that drops authorization headers, API keys and raw card fields, then test it by making a sandbox payment and searching every log sink for the test card number and the Braintree key. Set retention for each sink to the shortest period your operations and audit needs allow.

Choose the vault model that sets PCI scope

The vault model decides how much of the payment flow your systems touch. In the self-hosted, in-house PCI model, the Hyperswitch docs state that the merchant is fully responsible for PCI DSS certification and data handling, so your team carries those duties. An external PCI vault provider or the SaaS Hyperswitch Vault changes which components hold card data. Decide the model before connecting Braintree, because moving saved cards later is a migration project.

Vault models docs

How to test the Braintree connector before go-live

Run the full test plan in the Braintree sandbox before any live credential touches the Hyperswitch Router. Start with the money movement cases: authorization, capture, void, full refund and partial refund, and check each one in three places: the Hyperswitch payment record, the Control Center view and the Braintree sandbox dashboard. Add declined cards and the decline reasons that Braintree returns, and confirm that Hyperswitch maps each one to a consistent status and error code that your checkout can show. If the connector exposes 3DS outcomes for your flow, test the challenge, frictionless and failed paths separately. Confirm with Braintree which test card numbers and failure triggers its sandbox documents for each of these cases, because the list changes and your plan should cite the version you used.

Next, test saved cards and webhooks, which are where direct and orchestrated integrations most often diverge. Reuse a saved card for a second payment, confirm the stored token resolves to the correct customer in both systems, and verify that a card vaulted through the Hyperswitch vault path still charges after a Hyperswitch restart. For webhooks, check that each event reaches the endpoint, that a deliberately failed delivery is retried, and that out-of-order events (for example, a settlement notice arriving before the capture confirmation) leave the payment in the correct final state. Record how the payment_id and Braintree transaction ID are linked so reconciliation later has a clean join key.

Finish with a reconciliation exercise: take one full day of sandbox transactions and match every Hyperswitch payment, refund and void against the corresponding Braintree report line. Any unmatched item is a defect to resolve before go-live. Plan to rerun the whole suite after each Hyperswitch upgrade and each Braintree configuration change, since a minor release can alter connector mapping or webhook handling. Keep the results as dated evidence so your compliance and finance reviewers can see what was tested and when.

Common Hyperswitch Braintree integration failures

This table pairs common Braintree connector problems with their likely causes, the checks that confirm them, and the procedural fix. Work through a row by comparing the symptom with your own logs and configuration, then apply the fix in a test environment before production. Most failures trace back to credentials, webhook setup, or a mismatch between Hyperswitch and Braintree state.

SymptomLikely causeCheckFix
Authentication errors on API callsSandbox Braintree credentials are configured in a production Hyperswitch environment, or the reverseConfirm the environment setting on the Braintree connector matches the credential set, and that merchant ID, public key and private key all come from the same Braintree accountReplace the credential set with the matching environment's keys, save the connector, and rerun a test authorization in the sandbox first
Webhook signature verification failsThe webhook verification keys in Hyperswitch do not match the Braintree webhook settings, or the endpoint is behind a proxy that alters the request bodyCompare the webhook public and private keys in Braintree with the connector configuration, and check whether a gateway or ingress rewrites request bodiesRe-enter the matching keys, confirm the endpoint URL registered in Braintree points to your deployed router, and remove any middleware that modifies payloads
Payments stay in a pending or processing stateRequired Braintree webhook events are not subscribed, so Hyperswitch never receives the final statusReview the event types enabled on the Braintree webhook configuration against the events your Hyperswitch flows depend on, then check delivery logs for failed deliveriesSubscribe to the missing event types, redeliver the failed events from Braintree, and confirm the payment status updates in Hyperswitch
Duplicate charges or duplicate recordsA client or proxy retry resends a payment request without an idempotency key, or a webhook is processed twice without deduplicationSearch logs for repeated payment attempts with the same order reference and compare Braintree transaction IDs for double capturesSend a unique reference per payment attempt, confirm retry behavior in your client and gateway, and verify that webhook handlers ignore events already processed
PayPal option missing or PayPal flows failPayPal is not enabled on the Braintree account, or PayPal is not switched on in the Braintree connector settings in HyperswitchConfirm PayPal is active in the Braintree control panel, then check the Hyperswitch connector and payment method configuration for PayPalEnable PayPal in Braintree, enable the matching payment method on the connector in Hyperswitch, and test a PayPal sandbox transaction before go-live
Saved cards do not resolve after a vault model changeStored tokens were created under one vault model, and the new model cannot read or map themIdentify which vault model issued each saved token, and test a stored-payment transaction for a sample customer under the current configurationFollow the Hyperswitch migration guidance for the vault model in use, re-tokenize affected customers where required, and keep the old vault reachable until migration is verified
Reconciliation totals differ from BraintreeDifferent status meanings (authorized versus settled), different currency handling or amounts in minor units, and timing gaps between eventsMatch a sample of transactions by Braintree transaction ID across Hyperswitch and the Braintree settlement report, noting status and currency for eachMap Hyperswitch statuses to Braintree settlement states in your reconciliation logic, normalize currency and minor-unit handling, and compare on a settlement date basis
Refunds or captures do not appear in HyperswitchOperations were performed directly in the Braintree dashboard, bypassing Hyperswitch, so state was not syncedLook for transactions with changes in Braintree that have no matching Hyperswitch eventRoute all refunds and captures through Hyperswitch, and document a rule for any manual dashboard actions so they are recorded and reconciled

Questions buyers ask about the Hyperswitch Braintree integration

What drives the cost and effort of a Hyperswitch Braintree integration?

The main cost drivers are the number of Braintree merchant accounts and currencies, whether PayPal, Venmo or other Braintree-backed methods are in scope, how many environments you need, and how much of the saved card and webhook logic must be verified. Cost splits into one-time work (design, configuration, testing, go-live) and recurring work (upgrades, monitoring and retesting after Braintree or Hyperswitch changes). Ask for a written quote that lists each component, who performs it, and which items are fixed and which are estimated. DeployOpen does not publish a price list, so the quote follows from the written scope.

Can our own team connect Braintree to Hyperswitch without a partner?

Yes, if your engineers have the skills and time to work through the Hyperswitch connector configuration, Braintree credentials, webhook handling and the test matrix. The work is mostly configuration and verification rather than new code, but mistakes in webhook endpoints, credential scope or saved card migration can affect live payments. Before deciding, check the current Hyperswitch documentation for Braintree connector support and the exact fields it requires. A partner is most useful when the team lacks payments or PCI experience, or when a fixed delivery date matters.

How long does the integration take, and what sets the duration?

Duration depends on scope and testing more than on the connector setup itself. Sandbox configuration is usually quick compared with the time needed to test authorization, capture, refund, void, webhook delivery and failure paths across each payment method you enable. Other factors include how many environments must be approved, whether a second processor is being routed alongside Braintree, and how long your change control and security sign-offs take. No duration is stated here because none was supplied for this topic; request a timeline with the quote and confirm it against your release calendar.

What must our internal team provide before the work starts?

Plan to provide Braintree account access with the right API roles, sandbox and production environments, named owners for technical decisions and for final sign-off on each payment method, and access to your current payment logs and reconciliation reports. You will also need a decision on where Hyperswitch is hosted, who owns the secrets used for Braintree credentials, and who receives and monitors webhooks. Missing owners are one of the most common causes of delay, so name them before scoping begins and write their approval steps into the statement of work.

Is PayPal through Braintree included in the integration?

PayPal through Braintree is a separate payment method with its own enablement in your Braintree account, its own test cases and its own webhook and reporting behavior, so it should be scoped explicitly rather than assumed. Confirm in the current Hyperswitch documentation whether the Braintree connector supports PayPal flows, which operations are available, and which settings must be enabled on the Braintree side. Put PayPal in the written scope as an included or excluded item, with its test cases listed, so the quote and the delivery match.

How are saved cards handled when we move from a direct Braintree integration?

Saved cards are the highest-risk part of the move. Braintree vault tokens and customer records must be mapped to Hyperswitch payment method records so existing customers can pay without re-entering card details, and this depends on how Braintree stores and exposes those tokens for your account. Confirm with Braintree and the Hyperswitch migration documentation whether token migration is supported, what it requires, and whether any card data must be re-collected. Test saved card payments end to end in sandbox before any production cutover, and plan a fallback for customers whose tokens cannot be migrated.

How do Hyperswitch upgrades affect the Braintree connector?

Each Hyperswitch release can change connector code, configuration keys, dependencies and the compatibility matrix between the router, Control Center and client SDKs, so the Braintree connector must be retested after every upgrade you adopt. Hyperswitch ships regular minor releases, and some have added required dependencies, so check the release notes before upgrading. Ask for an upgrade plan that includes a regression test suite covering authorization, refunds, saved cards and webhooks for Braintree, and confirm whether Braintree API changes will be reviewed as part of that plan.

How DeployOpen scopes and delivers the Braintree connector work

DeployOpen plans, implements, tests, documents and supports self-hosted Hyperswitch inside your own infrastructure, including the Braintree connector work described on this page. Engagements are fixed-scope, so the Braintree credentials, payment flows, webhooks and saved card design are agreed in writing before any build starts.

How we scope

  • Confirm which Braintree account, merchant IDs and environments the connector will use, sandbox and production included.
  • Agree whether PayPal through Braintree, saved cards and network tokens are in the written scope or handled later.
  • Record which card data paths reach Hyperswitch and how the vault model keeps your PCI DSS scope defined.

How we build

  • Configure the Braintree connector credentials in your self-hosted Hyperswitch deployment, with secrets kept in your own secret store.
  • Wire Braintree webhooks to your Router endpoints and verify event handling for authorizations, captures, refunds and disputes.
  • Test routing rules against Braintree and any other processors you run alongside it, using sandbox transactions before production.

How we hand over

  • Deliver a written record of connector configuration, webhook endpoints, credential ownership and the vault model in use.
  • Provide test evidence from sandbox runs, including refund, void and failed-payment cases, for your payments and security teams to review.
  • Walk your operations team through reconciliation checks and the steps to rotate Braintree credentials.

How we support

  • Plan Hyperswitch upgrades against the release compatibility matrix, so the Braintree connector stays tested after each release.
  • Offer ongoing support, upgrades and continuous testing as a retainer, scoped separately from the initial build.
  • Ask any support provider to confirm response expectations in writing, since those terms depend on the agreed scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.