{"id":10503,"date":"2026-10-02T23:25:52","date_gmt":"2026-10-02T21:25:52","guid":{"rendered":"https:\/\/betterqa.co\/?p=10503"},"modified":"2026-10-02T23:25:52","modified_gmt":"2026-10-02T21:25:52","slug":"testing-integrations-when-the-sandbox-differs-from-production","status":"publish","type":"post","link":"https:\/\/betterqa.co\/testing-integrations-when-the-sandbox-differs-from-production\/","title":{"rendered":"How to test an integration when the partner&#8217;s test environment doesn&#8217;t match production"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"10503\" class=\"elementor elementor-10503\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-686e541 elementor-section-full_width elementor-section-height-default elementor-section-height-default\" data-id=\"686e541\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1c2669d\" data-id=\"1c2669d\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-fc417f6 elementor-widget elementor-widget-html\" data-id=\"fc417f6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<link rel=\"preconnect\" href=\"https:\/\/fonts.googleapis.com\">\n<link rel=\"preconnect\" href=\"https:\/\/fonts.gstatic.com\" crossorigin>\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Jost:wght@400;600&family=Roboto:wght@300;400&family=JetBrains+Mono:wght@400;500&display=swap\" rel=\"stylesheet\">\n\n<style>\n:root {\n    --purple: #9152DE;\n    --deep: #5F29A1;\n    --blue: #204782;\n    --paper: #DDE9E9;\n    --paper-dark: #c9dada;\n    --ink: #1a1a1a;\n    --ink-light: #4a4a5a;\n    --white: #ffffff;\n}\n\n.bqa-article {\n    font-family: 'Roboto', sans-serif;\n    color: var(--ink);\n    line-height: 1.7;\n    background: var(--paper);\n    position: relative;\n}\n\n.bqa-article::before {\n    content: '';\n    position: fixed;\n    top: 0; left: 0; right: 0; bottom: 0;\n    background-image:\n        linear-gradient(rgba(145, 82, 222, 0.03) 1px, transparent 1px),\n        linear-gradient(90deg, rgba(145, 82, 222, 0.03) 1px, transparent 1px);\n    background-size: 20px 20px;\n    pointer-events: none;\n    z-index: 0;\n}\n\n.bqa-article-section {\n    position: relative;\n    z-index: 1;\n    padding: 60px 24px;\n}\n\n.bqa-article-section.alt-bg {\n    background: rgba(255, 255, 255, 0.5);\n}\n\n.bqa-container {\n    max-width: 900px;\n    margin: 0 auto;\n}\n\n.bqa-section-label {\n    font-family: 'JetBrains Mono', monospace;\n    font-size: 11px;\n    font-weight: 500;\n    letter-spacing: 0.15em;\n    text-transform: uppercase;\n    color: var(--purple);\n    margin-bottom: 12px;\n    display: flex;\n    align-items: center;\n    gap: 12px;\n}\n\n.bqa-section-label::after {\n    content: '';\n    flex: 1;\n    height: 1px;\n    background: linear-gradient(90deg, var(--purple) 0%, transparent 100%);\n    max-width: 200px;\n}\n\n.bqa-article h1, .bqa-article h2, .bqa-article h3 {\n    font-family: 'Jost', sans-serif;\n    font-weight: 600;\n    color: var(--ink);\n    margin: 0 0 24px;\n    text-transform: none !important;\n}\n\n.bqa-article h1 { font-size: 2.5rem; line-height: 1.2; }\n.bqa-article h2 { font-size: 1.75rem; margin-top: 48px; }\n.bqa-article h3 { font-size: 1.25rem; margin-top: 32px; color: var(--deep); }\n\n.bqa-article p {\n    margin: 0 0 20px;\n    font-size: 1rem;\n}\n\n.bqa-article a {\n    color: var(--purple);\n    text-decoration: none;\n    border-bottom: 1px solid transparent;\n    transition: border-color 0.2s;\n}\n\n.bqa-article a:hover {\n    border-bottom-color: var(--purple);\n}\n\n.bqa-article .bqa-back-link {\n    font-family: 'JetBrains Mono', monospace;\n    font-size: 12px;\n    letter-spacing: 0.05em;\n    text-transform: uppercase;\n    color: var(--ink-light);\n    margin-bottom: 32px;\n    display: inline-block;\n}\n\n.bqa-article .bqa-back-link:hover { color: var(--purple); }\n\n\/* Hero with Sidebar *\/\n.bqa-hero-grid {\n    display: grid;\n    grid-template-columns: 1fr 280px;\n    gap: 48px;\n    align-items: start;\n}\n\n.bqa-hero-sidebar {\n    background: var(--white);\n    border: 1px solid var(--paper-dark);\n    padding: 24px;\n    position: relative;\n}\n\n.bqa-hero-sidebar::before,\n.bqa-hero-sidebar::after {\n    content: '';\n    position: absolute;\n    width: 12px;\n    height: 12px;\n    border-color: var(--purple);\n    border-style: solid;\n}\n\n.bqa-hero-sidebar::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }\n.bqa-hero-sidebar::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }\n\n.bqa-sidebar-title {\n    font-family: 'JetBrains Mono', monospace;\n    font-size: 11px;\n    font-weight: 500;\n    letter-spacing: 0.1em;\n    text-transform: uppercase;\n    color: var(--purple);\n    margin-bottom: 20px;\n    padding-bottom: 12px;\n    border-bottom: 1px dashed var(--paper-dark);\n}\n\n.bqa-sidebar-item {\n    display: flex;\n    align-items: flex-start;\n    gap: 12px;\n    margin-bottom: 16px;\n}\n\n.bqa-sidebar-item:last-child { margin-bottom: 0; }\n\n.bqa-sidebar-item i {\n    font-size: 14px;\n    margin-top: 3px;\n    flex-shrink: 0;\n}\n\n.bqa-sidebar-item:nth-child(odd) i { color: var(--purple); }\n.bqa-sidebar-item:nth-child(even) i { color: var(--blue); }\n\n.bqa-sidebar-item-label {\n    font-size: 11px;\n    font-family: 'JetBrains Mono', monospace;\n    text-transform: uppercase;\n    letter-spacing: 0.05em;\n    color: var(--ink-light);\n    margin-bottom: 2px;\n}\n\n.bqa-sidebar-item-value {\n    font-size: 14px;\n    color: var(--ink);\n    line-height: 1.4;\n}\n\n\/* Highlight Box *\/\n.bqa-highlight {\n    border-left: 4px solid var(--purple);\n    background: rgba(145, 82, 222, 0.04);\n    padding: 20px 24px;\n    margin: 32px 0;\n    transition: background 0.2s;\n}\n\n.bqa-highlight:hover { background: rgba(145, 82, 222, 0.07); }\n.bqa-highlight p { margin: 0; font-size: 0.95rem; }\n.bqa-highlight strong { color: var(--deep); }\n\n\/* Mistake Number *\/\n.mistake-num {\n    font-family: 'JetBrains Mono', monospace;\n    font-weight: 500;\n    color: var(--purple);\n}\n\n\/* Stats Row *\/\n.bqa-stats-row {\n    display: flex;\n    justify-content: center;\n    gap: 48px;\n    padding: 32px 40px;\n    background: linear-gradient(135deg, var(--deep) 0%, var(--blue) 100%);\n    margin: 32px 0;\n    position: relative;\n    overflow: hidden;\n}\n\n.bqa-stats-row::after {\n    content: '';\n    position: absolute;\n    inset: 0;\n    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);\n    animation: shine 4s ease-in-out infinite;\n}\n\n@keyframes shine {\n    0%, 100% { transform: translateX(-100%); }\n    50% { transform: translateX(100%); }\n}\n\n.bqa-stat {\n    text-align: center;\n    color: #fff;\n}\n\n.bqa-stat-value {\n    font-family: 'JetBrains Mono', monospace;\n    font-size: 2rem;\n    font-weight: 500;\n    color: #fff;\n    margin-bottom: 6px;\n}\n\n.bqa-stat-label {\n    font-size: 0.8rem;\n    color: rgba(255, 255, 255, 0.85);\n    text-transform: uppercase;\n    letter-spacing: 0.5px;\n}\n\n.bqa-stat-source {\n    font-family: 'JetBrains Mono', monospace;\n    font-size: 0.65rem;\n    color: rgba(255, 255, 255, 0.5);\n    margin-top: 4px;\n}\n\n\/* FAQ Accordion *\/\n.bqa-faq-item {\n    border-bottom: 1px solid var(--paper-dark);\n}\n\n.bqa-faq-item:first-child {\n    border-top: 1px solid var(--paper-dark);\n}\n\n.bqa-faq-question {\n    width: 100%;\n    background: none;\n    border: none;\n    padding: 20px 0;\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n    cursor: pointer;\n    text-align: left;\n    font-family: 'Jost', sans-serif;\n    font-size: 1.05rem;\n    font-weight: 600;\n    color: var(--ink);\n    gap: 16px;\n}\n\n.bqa-faq-question:hover { color: var(--purple); }\n\n.bqa-faq-toggle {\n    width: 28px;\n    height: 28px;\n    min-width: 28px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    font-size: 1.2rem;\n    color: var(--purple);\n    transition: transform 0.3s ease;\n}\n\n.bqa-faq-item.open .bqa-faq-toggle { transform: rotate(45deg); }\n\n.bqa-faq-answer {\n    max-height: 0;\n    overflow: hidden;\n    transition: max-height 0.35s ease;\n}\n\n.bqa-faq-item.open .bqa-faq-answer { max-height: 400px; }\n\n.bqa-faq-answer-inner {\n    padding: 0 0 24px;\n    font-size: 0.95rem;\n    color: var(--ink-light);\n    line-height: 1.85;\n}\n\n\/* CTA *\/\n.bqa-cta {\n    background: linear-gradient(135deg, var(--deep) 0%, var(--purple) 100%);\n    color: #fff;\n    padding: 48px 40px;\n    text-align: center;\n    position: relative;\n    z-index: 1;\n}\n\n.bqa-cta h2 {\n    color: #fff;\n    font-size: 1.6rem;\n    margin-bottom: 12px;\n}\n\n.bqa-cta p {\n    color: rgba(255, 255, 255, 0.9);\n    margin-bottom: 28px;\n}\n\n.bqa-article .bqa-cta-btn {\n    display: inline-block;\n    padding: 14px 32px;\n    background: var(--white);\n    color: var(--deep);\n    font-family: 'Jost', sans-serif;\n    font-weight: 600;\n    font-size: 14px;\n    text-decoration: none;\n    border: none;\n    border-bottom: none;\n    transition: all 0.3s;\n}\n\n.bqa-article .bqa-cta-btn:hover {\n    transform: translateY(-2px);\n    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);\n    color: var(--deep);\n    border-bottom: none;\n}\n\n\/* Related Resources *\/\n.bqa-related-label {\n    font-family: 'JetBrains Mono', monospace;\n    font-size: 11px;\n    font-weight: 500;\n    letter-spacing: 0.1em;\n    text-transform: uppercase;\n    color: var(--purple);\n    margin-bottom: 16px;\n}\n\n.bqa-related-links {\n    display: flex;\n    flex-wrap: wrap;\n    gap: 10px;\n}\n\n.bqa-article .bqa-related-link {\n    display: inline-flex;\n    align-items: center;\n    gap: 8px;\n    padding: 10px 18px;\n    background: var(--white);\n    border: 1px solid var(--paper-dark);\n    color: var(--ink-light);\n    font-size: 0.875rem;\n    transition: all 0.2s;\n}\n\n.bqa-article .bqa-related-link:hover {\n    border-color: var(--purple);\n    color: var(--purple);\n    border-bottom-color: var(--purple);\n}\n\n.bqa-related-link i {\n    font-size: 11px;\n    color: var(--purple);\n}\n\n\/* Scroll Reveal *\/\n.bqa-reveal {\n    opacity: 0;\n    transform: translateY(16px);\n    transition: opacity 0.6s ease, transform 0.6s ease;\n}\n\n.bqa-reveal.visible {\n    opacity: 1;\n    transform: translateY(0);\n}\n\n\/* Responsive *\/\n@media (max-width: 768px) {\n    .bqa-hero-grid {\n        grid-template-columns: 1fr;\n        gap: 32px;\n    }\n\n    .bqa-article h1 { font-size: 2rem; }\n    .bqa-article h2 { font-size: 1.4rem; }\n\n    .bqa-stats-row { flex-direction: column; gap: 24px; padding: 32px 24px; }\n    .bqa-stat-value { font-size: 1.75rem; }\n}\n\n@media (max-width: 500px) {\n    .bqa-article-section { padding: 40px 16px; }\n    .bqa-article h1 { font-size: 1.7rem; }\n    .bqa-cta { padding: 36px 24px; }\n    .bqa-stats-row { gap: 20px; padding: 24px 16px; }\n    .bqa-stat-value { font-size: 1.5rem; }\n\n    .bqa-related-links { flex-direction: column; }\n}\n\n@media (max-width: 380px) {\n    .bqa-article h1 { font-size: 1.5rem; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n    .bqa-reveal {\n        opacity: 1;\n        transform: none;\n        transition: none;\n    }\n    .bqa-stats-row::after { animation: none; }\n}\n\n\/* Decision table (drafts) *\/\n.bqa-table-wrap { overflow-x: auto; margin: 24px 0; }\n.bqa-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--white); }\n.bqa-table th { background: var(--ink); color: #fff; font-family: 'Jost', sans-serif; font-weight: 600; text-align: left; padding: 12px 14px; }\n.bqa-table td { padding: 12px 14px; border-bottom: 1px solid var(--paper-dark); vertical-align: top; }\n.bqa-table tr:nth-child(even) td { background: rgba(221, 233, 233, 0.35); }\n.bqa-article ol, .bqa-article ul.bqa-list { padding-left: 22px; margin: 16px 0; }\n.bqa-article ol li, .bqa-article ul.bqa-list li { margin-bottom: 8px; }\n@media (max-width: 500px) { .bqa-table { font-size: 0.82rem; } .bqa-table th, .bqa-table td { padding: 10px; } }\n\n.bqa-faq-item.active .bqa-faq-toggle { transform: rotate(45deg); }\n.bqa-faq-item.active .bqa-faq-answer { max-height: 400px; display: block; }\n.bqa-reveal.revealed { opacity: 1; transform: none; }\n.bqa-article .bqa-reveal { opacity: 1 !important; transform: none !important; }\n.bqa-article .bqa-faq-question { white-space: normal; }\n.bqa-article .bqa-faq-question > span:first-child { min-width: 0; overflow-wrap: anywhere; }\n.bqa-article h1, .bqa-article h2, .bqa-article h3, .bqa-article p, .bqa-article li { text-align: left; }\n<\/style>\n\n\n<div class=\"bqa-article\">\n\n    <!-- Hero -->\n    <div class=\"bqa-article-section bqa-reveal\">\n        <div class=\"bqa-container\">\n            <a href=\"\/blog\/\" class=\"bqa-back-link\"><i class=\"fa-solid fa-arrow-left\"><\/i> Back to blog<\/a>\n\n            <div class=\"bqa-hero-grid\">\n                <div>\n                    <div class=\"bqa-section-label\">Integration testing<\/div>\n                    <h1>How to test an integration when the partner's test environment doesn't match production<\/h1>\n                    <p>Most products lean on someone else's system for the part that matters most. A payment provider takes the money, a bank confirms the transfer, a shipping carrier books the parcel, an identity provider decides who gets in. Many of those providers offer a sandbox or UAT environment. Then the team discovers that the sandbox answers differently from production, or the credentials never arrived, or <a href=\"https:\/\/betterqa.co\/test-environment-management-best-practices\/\">their own test environment<\/a> cannot reach the provider's servers at all.<\/p>\n                    <p>At that point we often hear the same conclusion: the riskiest part of the product is untestable. It is not. Some of the risk cannot be removed before release, but most of it can be tested, and the rest can be reduced and watched. This article explains how.<\/p>\n                <\/div>\n\n                <div class=\"bqa-hero-sidebar\">\n                    <div class=\"bqa-sidebar-title\">Article details<\/div>\n                    <div class=\"bqa-sidebar-item\">\n                        <i class=\"fa-solid fa-flag-checkered\"><\/i>\n                        <div>\n                            <div class=\"bqa-sidebar-item-label\">Question<\/div>\n                            <div class=\"bqa-sidebar-item-value\">How do I test an integration when the partner's sandbox does not behave like production?<\/div>\n                        <\/div>\n                    <\/div>\n                    <div class=\"bqa-sidebar-item\">\n                        <i class=\"fa-solid fa-user-tie\"><\/i>\n                        <div>\n                            <div class=\"bqa-sidebar-item-label\">Audience<\/div>\n                            <div class=\"bqa-sidebar-item-value\">CTOs, product owners and founders whose product depends on third-party providers<\/div>\n                        <\/div>\n                    <\/div>\n                    <div class=\"bqa-sidebar-item\">\n                        <i class=\"fa-solid fa-users\"><\/i>\n                        <div>\n                            <div class=\"bqa-sidebar-item-label\">BetterQA team<\/div>\n                            <div class=\"bqa-sidebar-item-value\">50+ engineers, founded 2018<\/div>\n                        <\/div>\n                    <\/div>\n                    <div class=\"bqa-sidebar-item\">\n                        <i class=\"fa-solid fa-star\"><\/i>\n                        <div>\n                            <div class=\"bqa-sidebar-item-label\">Clutch rating<\/div>\n                            <div class=\"bqa-sidebar-item-value\">4.9 \/ 5 from 71 reviews<\/div>\n                        <\/div>\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <!-- Your side -->\n    <div class=\"bqa-article-section alt-bg bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">Your side of the contract<\/div>\n            <h2>What can you test when you cannot reach the provider?<\/h2>\n            <p>An integration has two halves. The provider owns theirs. You own yours: the requests you send, and everything your product does with the answer. Most production incidents we see around third-party systems sit on your half. The provider replied with something legitimate, and the product did not know what to do with it.<\/p>\n            <p>That half is fully testable without the provider. Write down every request your product sends and every answer it can get back, then test how the product behaves for each one. A useful starting list:<\/p>\n            <ul>\n                <li><strong>The request itself.<\/strong> Correct fields, formats, currency and amount handling, character encoding in names and addresses, and the authentication headers.<\/li>\n                <li><strong>Every documented response.<\/strong> Success, each decline or rejection code, validation errors, and the \"pending\" or \"under review\" states that resolve later.<\/li>\n                <li><strong>Timeouts.<\/strong> What the user sees when the provider takes thirty seconds, and what state the order or account is left in.<\/li>\n                <li><strong>Retries.<\/strong> Whether a retry can charge a customer twice or book two shipments. Ask whether the provider supports idempotency keys and whether you send them.<\/li>\n                <li><strong>Duplicates and late arrivals.<\/strong> The same callback delivered twice, or a webhook that arrives before the API response it belongs to.<\/li>\n                <li><strong>Outages.<\/strong> A 500, a dropped connection, an expired certificate. The product should fail in a way a person can recover from.<\/li>\n            <\/ul>\n            <p>None of this needs the provider to be reachable. Our <a href=\"\/integration-testing\/\">integration testing guide<\/a> covers the wider technique.<\/p>\n        <\/div>\n    <\/div>\n\n    <!-- Simulation -->\n    <div class=\"bqa-article-section bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">Simulating the provider<\/div>\n            <h2>How do you build a stand-in that behaves like production?<\/h2>\n            <p>Once you know what to test, you need something to answer your requests. That is a mock, a stub, or at larger scale <a href=\"https:\/\/en.wikipedia.org\/wiki\/Service_virtualization\" target=\"_blank\" rel=\"noopener nofollow\">service virtualisation<\/a>: a fake provider that returns the responses you choose, including the awkward ones a real sandbox will never produce on demand.<\/p>\n            <p>The weakness of any simulator is that someone wrote it, and it encodes what they assumed. A mock built from the provider's documentation tests your product against the documentation. Production does not always agree with the documentation. So build the stand-in from real production behaviour wherever you can:<\/p>\n            <ul>\n                <li>Capture real responses from production logs, with personal and payment data removed, and replay them as fixtures.<\/li>\n                <li>Include the odd ones: the extra field nobody documented, the error message in a different language, the empty string where you expected a null.<\/li>\n                <li>Add contract tests that check the shape of what you send and what you expect back. When the provider changes a field, a contract test is the first place it shows up.<\/li>\n            <\/ul>\n            <p>Then keep the recordings current. A fixture captured two years ago describes a provider that may no longer exist. Treat refreshing them as part of maintenance, the same way you treat an <a href=\"\/software-testing-services\/test-automation\/\">automated test suite<\/a> that needs updating when the interface changes.<\/p>\n        <\/div>\n    <\/div>\n\n    <!-- Differences list -->\n    <div class=\"bqa-article-section alt-bg bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">Sandbox vs production<\/div>\n            <h2>Why should you write the sandbox differences down?<\/h2>\n            <p>Teams usually know their sandbox is different. What they rarely have is a written list of how. Without one, every test passed in the sandbox carries a silent caveat nobody can read, and the release decision is made on a feeling.<\/p>\n            <p>Keep a short table with one row per known difference: what the sandbox does, what production does, and how you cover the gap. Typical rows look like this. The sandbox approves every card, production declines some for fraud reasons. The sandbox replies instantly, production sometimes takes several seconds. The sandbox never sends a duplicate webhook, production occasionally does. The sandbox has looser rate limits. The sandbox certificate or endpoint differs from the live one.<\/p>\n            <p>For each row the answer is one of three things: tested in the simulator, checked in production after release, or accepted as a known risk with someone's name next to it. That table is worth more than the sandbox test results, because it tells the person signing off exactly what has and has not been proven. It belongs in the release checklist, which our article on <a href=\"\/qa-role-in-software-release-management\/\">QA's role in release management<\/a> describes.<\/p>\n        <\/div>\n    <\/div>\n\n    <!-- Production -->\n    <div class=\"bqa-article-section bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">After release<\/div>\n            <h2>What can you safely check in production?<\/h2>\n            <p>Some things only production can tell you. Better to plan for that than to pretend the sandbox settled it. Testing in production does not mean letting customers find the bugs. It means small, deliberate checks with a way back.<\/p>\n            <ol>\n                <li><strong>Put the integration behind a feature flag.<\/strong> You can switch it off in minutes without a deploy if the provider starts behaving badly.<\/li>\n                <li><strong>Roll out in stages.<\/strong> Internal users first, then a small share of traffic, then everyone. Each stage is a test with real answers from the real provider.<\/li>\n                <li><strong>Run limited live checks where it is safe.<\/strong> A small real transaction with a company card that is refunded the same day, a test shipment to your own office, a login with a dedicated test identity. Agree these with the provider and with whoever owns compliance first.<\/li>\n                <li><strong>Watch the numbers that move when it breaks.<\/strong> Decline rate, timeout rate, callbacks received versus requests sent, and orders stuck in a pending state. Alert on a change, not just on an error.<\/li>\n            <\/ol>\n            <p>Logging is what turns a production failure from a mystery into a ticket. For every call to the provider, record the request identifier, the idempotency key, the timestamp, the response code, how long it took and which retry it was. Never log card numbers, tokens or passwords. When something goes wrong at night, this is what lets someone answer \"did we send it, did they receive it, and what did they say\" before the morning.<\/p>\n        <\/div>\n    <\/div>\n\n    <!-- Honest + vendor -->\n    <div class=\"bqa-article-section alt-bg bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">Being honest about risk<\/div>\n            <h2>What risk remains, and where should a new QA vendor start?<\/h2>\n            <p>After all of the above, some risk is still there. You cannot prove before release that a provider's production fraud rules will treat your customers the way you expect, or that their system will behave under the load of your launch day. You can reduce that risk, detect it quickly and limit how many people it reaches. A test report that says otherwise is not being straight with you. A good one says which parts were proven in test, which will be confirmed in production, and which are accepted.<\/p>\n            <p>One practical point if you are bringing in a QA vendor for the first time. Do not make the integration nobody can reach their first assignment. Pick a first area where the testers can reach the backend, see real responses and file bugs a developer can confirm the same day. The hard integration comes second, when they know your system well enough to build a sensible simulator and write the differences table with you. Our article on <a href=\"\/qa-trial-period-what-to-check\/\">what a QA trial should prove<\/a> goes into choosing that first area.<\/p>\n            <p>This is also work we do as part of a <a href=\"\/managed-testing-services\/\">managed testing<\/a> engagement: mapping your integrations, building the stand-ins in your repository and CI, and agreeing the production checks with your team. What we build belongs to you. Engagements run at \u20ac20 to \u20ac45 an hour, and a team is usually working on your product about two weeks after the first call.<\/p>\n        <\/div>\n    <\/div>\n\n    <!-- FAQ -->\n    <div class=\"bqa-article-section bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">FAQ<\/div>\n            <h2>Frequently asked questions<\/h2>\n\n            <div class=\"bqa-faq-item\">\n                <button class=\"bqa-faq-question\" aria-expanded=\"false\">\n                    <span>What is the difference between sandbox and production testing?<\/span>\n                    <span class=\"bqa-faq-toggle\">+<\/span>\n                <\/button>\n                <div class=\"bqa-faq-answer\">\n                    <div class=\"bqa-faq-answer-inner\">\n                        Sandbox testing runs against the provider's test environment, which is safe but often simplified: it may approve everything, reply instantly and never send duplicates. Production testing means small, controlled checks against the live provider after release, behind a feature flag and with monitoring. Most integrations need both, plus a written list of how the two differ.\n                    <\/div>\n                <\/div>\n            <\/div>\n\n            <div class=\"bqa-faq-item\">\n                <button class=\"bqa-faq-question\" aria-expanded=\"false\">\n                    <span>Can I test an integration without access to the provider's test environment?<\/span>\n                    <span class=\"bqa-faq-toggle\">+<\/span>\n                <\/button>\n                <div class=\"bqa-faq-answer\">\n                    <div class=\"bqa-faq-answer-inner\">\n                        Yes, most of it. Test your own side: the requests you send and how the product handles every response, timeout, retry, duplicate and outage. Use mocks or service virtualisation built from real production responses, and add contract tests so changes on the provider's side show up early.\n                    <\/div>\n                <\/div>\n            <\/div>\n\n            <div class=\"bqa-faq-item\">\n                <button class=\"bqa-faq-question\" aria-expanded=\"false\">\n                    <span>Is it safe to test in production?<\/span>\n                    <span class=\"bqa-faq-toggle\">+<\/span>\n                <\/button>\n                <div class=\"bqa-faq-answer\">\n                    <div class=\"bqa-faq-answer-inner\">\n                        It can be, if the checks are small and reversible. Use a feature flag, roll out in stages, run limited live transactions that you can refund or cancel, and agree them with the provider first. Monitor the rates that change when the integration breaks, and log enough to diagnose a failure without storing sensitive data.\n                    <\/div>\n                <\/div>\n            <\/div>\n\n            <div class=\"bqa-faq-item\">\n                <button class=\"bqa-faq-question\" aria-expanded=\"false\">\n                    <span>Can all integration risk be removed before release?<\/span>\n                    <span class=\"bqa-faq-toggle\">+<\/span>\n                <\/button>\n                <div class=\"bqa-faq-answer\">\n                    <div class=\"bqa-faq-answer-inner\">\n                        No. Some behaviour only exists in the provider's production system. The goal is to prove what can be proven in test, confirm the rest quickly after release, and make the remaining risk visible and owned rather than silent.\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <!-- CTA -->\n    <div class=\"bqa-article-section alt-bg bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-cta\">\n                <h2>Not sure how much of your integration is really tested?<\/h2>\n                <p>Tell us which provider worries you. We will map what can be tested before release, what needs a production check, and what you are currently accepting without knowing it.<\/p>\n                <a href=\"https:\/\/calendly.com\/betterqa\" class=\"bqa-cta-btn\" rel=\"nofollow noopener\" target=\"_blank\">Book a call<\/a>\n                <a href=\"\/software-testing-services\/\" class=\"bqa-cta-btn\">See our testing services<\/a>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <!-- Related -->\n    <div class=\"bqa-article-section bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-related-label\">Related resources<\/div>\n            <div class=\"bqa-related-links\">\n                <a href=\"\/integration-testing\/\" class=\"bqa-related-link\"><i class=\"fa-solid fa-plug\"><\/i> Integration testing guide<\/a>\n                <a href=\"\/qa-role-in-software-release-management\/\" class=\"bqa-related-link\"><i class=\"fa-solid fa-rocket\"><\/i> QA in release management<\/a>\n                <a href=\"\/managed-testing-services\/\" class=\"bqa-related-link\"><i class=\"fa-solid fa-diagram-project\"><\/i> Managed testing services<\/a>\n                <a href=\"\/qa-trial-period-what-to-check\/\" class=\"bqa-related-link\"><i class=\"fa-solid fa-list-check\"><\/i> What a QA trial should prove<\/a>\n            <\/div>\n        <\/div>\n    <\/div>\n\n<\/div>\n\n<script>\n\/\/ Scroll reveal\n(function() {\n    var els = document.querySelectorAll('.bqa-reveal');\n    if (!window.IntersectionObserver) {\n        els.forEach(function(el) { el.classList.add('visible'); });\n        return;\n    }\n    var obs = new IntersectionObserver(function(entries) {\n        entries.forEach(function(entry) {\n            if (entry.isIntersecting) {\n                entry.target.classList.add('visible');\n                obs.unobserve(entry.target);\n            }\n        });\n    }, { threshold: 0.1, rootMargin: '0px 0px -40px 0px' });\n    els.forEach(function(el) { obs.observe(el); });\n})();\n\n\/\/ FAQ: the site script toggles .active; keep aria-expanded in sync with it\n(function() {\n    document.querySelectorAll('.bqa-faq-item').forEach(function(item) {\n        var btn = item.querySelector('.bqa-faq-question');\n        if (!btn || !window.MutationObserver) return;\n        new MutationObserver(function() {\n            btn.setAttribute('aria-expanded', item.classList.contains('active') ? 'true' : 'false');\n        }).observe(item, { attributes: true, attributeFilter: ['class'] });\n    });\n})();\n<\/script>\n\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>The partner&#8217;s sandbox does not behave like production. How to test your side, simulate the provider, list the differences and check safely after release.<\/p>\n","protected":false},"author":1,"featured_media":9116,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1016],"tags":[],"class_list":["post-10503","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guides-and-tutorials"],"acf":[],"_links":{"self":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/posts\/10503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/comments?post=10503"}],"version-history":[{"count":1,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/posts\/10503\/revisions"}],"predecessor-version":[{"id":10504,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/posts\/10503\/revisions\/10504"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/media\/9116"}],"wp:attachment":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/media?parent=10503"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/categories?post=10503"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/tags?post=10503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}