Skip to main content

How do I test an integration safely with sandbox accounts before it touches live QuickBooks, Stripe or Salesforce data?

Build the integration against each vendor’s sandbox, seed it with records that copy your production edge cases, then dry-run it against live data before it writes anything. A two-system sync takes 2–4 weeks and costs $1,500–$6,000 at Smplfy; keep the last week for dry runs, cutover and a tested rollback.

What each sandbox gives you, and where it differs from production

All three vendors give you a free test environment, and none of them behaves exactly like your live account. Most integrations that pass testing and then break in their first live week break on these differences.

Vendor Test environment What you get Where it differs from production
QuickBooks Online Sandbox company in an Intuit developer account A sample company with prefilled customers, items and invoices; development keys and a separate sandbox API address Intuit’s sample data, not your chart of accounts, tax codes, classes or custom fields; production keys are issued separately
Stripe Test mode or a sandbox, with sk_test_ keys Test card numbers, simulated payments, refunds and disputes, test clocks for subscriptions No money moves; products, prices, webhook endpoints and settings do not carry over to live; test-mode rate limits are lower than live
Salesforce Developer, Developer Pro, Partial Copy or Full sandbox Developer types copy metadata only (fields, flows, validation rules); Partial Copy adds a sample of records; Full copies everything Login through test.salesforce.com with a suffix on usernames; email deliverability starts as system email only; Developer sandboxes refresh daily, Full only every 29 days

Three differences that catch people

  • Data shape. A QuickBooks sandbox has none of your items, tax settings or customer naming. A mapping that works on sample data can fail on your real income accounts.
  • Live automation inside the sandbox. Salesforce sandboxes copy your flows and triggers. In a Partial Copy or Full sandbox the contact email addresses are real, so if someone turns deliverability back on, a test record can email a real customer.
  • Webhooks. Stripe test and live webhook endpoints are registered separately, each with its own signing secret. A sync that verified test events will reject live events until the live secret is stored.

Seeding test data: a checklist

Sandbox sample data tests the happy path. The records that break integrations are ones you have to create yourself. Script the seed so you can wipe and reload it, because you will run it dozens of times.

  • One clean record for each normal path: a new customer, a repeat customer, a paid invoice, a refund.
  • Near-duplicates: two customers with the same name and different emails, and one email typed in different case.
  • Missing fields: a Salesforce opportunity with no billing address, a contact with no email.
  • Out-of-order data: a Stripe payment for a customer that does not yet exist in QuickBooks.
  • Your custom fields and picklist values, populated on both sides with the same values production uses.
  • Awkward text: apostrophes, accented characters, very long company names, non-US addresses.
  • Volume: more records than one API page returns, so pagination and rate-limit handling actually run.

Dry-run mode: test against live data without writing to it

A sandbox proves the code works. A dry run proves it works on your data. In dry-run mode the integration reads from live systems, works out every create and update it would make, and writes that plan to a log instead of sending it.

Worked example

  1. A Salesforce opportunity moves to Closed Won.
  2. The integration looks up the account’s stored QuickBooks ID. If the ID exists, it plans an update; if not, it plans a new customer and a draft invoice.
  3. A Stripe payment_intent.succeeded event arrives, matched to the invoice by a stored ID in the payment’s metadata, and the integration plans to mark the opportunity paid.
  4. In dry-run, each planned write is logged with the source record, the target and the field values, and nothing is sent.

Run it through one full business cycle, then read the log. If it plans a new QuickBooks customer for someone who already exists, the matching rule is wrong, and you found it without creating a duplicate. Turn writes on only when the log shows exactly the writes you expected.

Cutover plan

  1. Swap credentials: QuickBooks production OAuth, a restricted sk_live_ Stripe key, and a dedicated Salesforce integration user with only the permissions it needs.
  2. Register the live Stripe webhook endpoint and store its signing secret.
  3. Decide the start point. Link existing records by stored IDs so the first run does not recreate customers that already exist on both sides.
  4. Turn off the old process (the Zapier zap, the import, the person keying invoices) in the same window, or both will write.
  5. Go live on one record type or a small batch first, and watch it.
  6. Read the error and write logs daily for the first week.

Rollback: stopping it and undoing what it wrote

Rolling back an integration means two things: stop new writes within minutes, and reverse the ones already made. Both have to exist before cutover.

  • A kill switch: a setting that stops all writes without a code deploy.
  • A write log: every record the integration created or changed, with its ID in each system, so a bad batch can be found and reversed.
  • An export of the affected objects taken just before cutover.
  • A list of what cannot be undone. A Stripe charge can be refunded but not deleted. A QuickBooks invoice already emailed to a customer has been seen. Deleted Salesforce records stay in the Recycle Bin for 15 days.

How much of this you need

If you have one no-code zap moving a few records a week, a test copy of the zap pointed at sandboxes is enough. Don’t hire anyone for that. Once the integration creates invoices, moves payments or touches thousands of customer records, you need the full sequence above.

We build sandbox setup, seed scripts, dry-run mode and a rollback runbook into every integration we write. A typical two-system integration is $1,500–$6,000 at Smplfy, or $85 an hour. The top of that range is for heavy field mapping and error handling. Built this way, a Stripe-to-Salesforce and Google Sheets finance sync that has run for two years with minimal maintenance is the normal result, not the lucky one.

Frequently asked questions

Can I copy my live QuickBooks company into a sandbox?
No. QuickBooks Online has no button that clones a production company into a sandbox. You can import customer and item lists from spreadsheets, or seed records through the API with a script. For testing, scripted seeding is better because you can reset it.

Which Salesforce sandbox should I use to test an integration?
Use a Developer sandbox while building, because it refreshes daily and holds only your metadata. Use a Partial Copy or Full sandbox for the final test, so you can see how the integration behaves on real record shapes. Which types you have depends on your Salesforce edition and licenses.

How do I test Stripe webhooks before going live?
Use the Stripe CLI: stripe listen forwards test-mode events to your local or staging endpoint, and stripe trigger fires specific events such as payment_intent.succeeded. Test retries and duplicate deliveries too, because Stripe can send the same event more than once. Before cutover, register the live endpoint and store its separate signing secret.

What if the first project doesn’t work out?
The first project has a fixed scope, and you read the written scope before committing to anything. A retainer starts only if you choose one. Charlie scopes every project and makes the architecture calls, and Smplfy’s own engineers build it.

How long should a dry run last before turning on writes?
Long enough to cover one full cycle of the process. That might be a week if invoices go out daily, or through a month-end close if that is when the unusual records appear. Stop when the dry-run log shows only the writes you expected.

Want a test and cutover plan for your stack?

Tell us which systems you’re connecting, roughly how many records move each month, and what is done by hand today. We’ll send a free written scope or set up a 20-minute call, covering how we would test it before it touches live data. Start a conversation.