Magento Open Source Stripe integration

Stripe connects to self-hosted Magento Open Source through Stripe's own plugins, and the plugin you choose sets how much of the payment flow touches your servers and your PCI DSS scope.

On this page

How Stripe connects to Magento Open Source for payments and tax

Stripe publishes two plugins for Magento Open Source, and both are documented by Stripe: a Payments, Billing and Tax plugin and a Stripe Tax plugin. The first is the option for stores that want Stripe to handle payment methods, including cards and local payment methods, with tax automation included. The second is for stores that keep their payment processing with another provider but want Stripe to calculate tax. Before any build work starts, your team should read Stripe's Stripe plugins for Adobe Commerce documentation and confirm which payment methods, countries and currencies the plugin supports for your merchant account, since those details depend on Stripe's current terms rather than on this page.

The choice matters for PCI DSS scope because it decides where cardholder data is entered, processed and stored. If the Payments plugin collects card details through Stripe-hosted fields or elements, your store servers should not receive raw card numbers, which typically narrows the cardholder data environment that your assessor must review. If you choose the Stripe Tax plugin alone, your existing card flow stays in place and the scope stays with that flow. Have your QSA or internal compliance lead map each data flow, including the checkout template, any custom JavaScript that touches payment fields, and the Magento admin pages where refunds are issued, before you commit to one plugin. PCI DSS v4.0.1 is the only active version, so use it as the reference for that mapping.

Plan for the build and the upgrade path together. The plugin must match the Magento Open Source release you run, and Adobe's supported version list changes each patch cycle, so confirm compatibility against the release you plan to deploy and the Stripe documentation before a go-live. Test checkout end to end in a staging environment with Stripe test mode, including failed payments, partial refunds, tax on shipping and tax-exempt customers. Record which Magento modules, templates and payment-related configuration changes you made, because each one becomes work during the next upgrade.

What you need before installing the Stripe plugin

Most installation delays come from a stack that does not match the plugin's supported versions or from missing account access. Confirm the release line, the hosting prerequisites and the Stripe accounts before anyone touches the store.

Confirm the Magento release line

Adobe's 2.4.9 system requirements list PHP 8.5, MySQL 8.4 or MariaDB 12.3 (recommended) or 11.8, OpenSearch 3, Redis or Valkey 9, RabbitMQ 4.3, Composer 2.10 and nginx 1.30 on Linux x86-64, and Adobe supports only the listed combinations. The 2.4.8-p5 requirements differ, listing PHP 8.4 or 8.3, MariaDB 11.4 or 11.8, Redis or Valkey 8.1 and Varnish 8. Record the exact release your team runs before choosing a plugin version.

System requirements

Check plugin compatibility with that release

Stripe publishes its plugins for Adobe Commerce and Magento Open Source, and each plugin version targets specific Magento releases. Match the plugin to your 2.4.x line in Stripe's documentation before purchasing time for the install. Ask Stripe which plugin version covers your release, and plan a re-check at each patch cycle because a compatible plugin for one line may not carry to the next.

Stripe plugin docs

Stripe account and API key access

Decide which team owns the Stripe account, who holds administrator rights and how API keys are issued and rotated. The plugin needs keys with the permissions your payment design requires, so confirm them with Stripe's documentation. Store secret keys in your secrets manager, not in the Magento admin, and record who can view and rotate them.

Sandbox account for testing

Set up a Stripe test environment before the live store is configured, so checkout, refunds, webhooks and tax calculations can be exercised with test keys. Keep test and live keys in separate configuration scopes, and confirm that test credentials cannot process live charges. Plan who signs off on test results before the switch to live mode.

HTTPS on storefront and checkout

Card and wallet flows require HTTPS across the storefront, checkout and admin pages, with valid certificates and no mixed content. Confirm the certificate chain, redirects from HTTP and the Content Security Policy settings that Adobe documents for payment pages, since Stripe's scripts and frames must be allowed. Test these on the same hostname used in production.

Content Security Policy docs

Configuring the Stripe plugin in the right order

This sequence takes a self-hosted Magento Open Source store from a compatible platform stack to verified test payments and tax lines, so each layer is proven before live money moves through it.

  1. Confirm release, PHP and service versions

    Before installing anything, check the Magento Open Source release line against Adobe's system requirements for that version, including the PHP version, the database, OpenSearch, Redis or Valkey, RabbitMQ, Composer and nginx. Confirm the Stripe plugin version you intend to install supports that same release and PHP version in Stripe's Adobe Commerce documentation. Adobe supports only the listed combinations, so a mismatch here is the cheapest failure to catch. Done means a written compatibility record that your platform engineers and the partner both signed off on.

  2. Install the plugin with Composer

    Install the Stripe package into the codebase with Composer from a version-controlled branch, not directly on the production server. Commit the resulting changes to composer.json, composer.lock and the generated module files so the build is reproducible in every environment. Your team or the partner runs this in a non-production copy first. Done means the module appears in the module list of the staging instance and the lock file diff contains only the expected packages.

  3. Run setup upgrade and flush caches

    Run the Magento setup upgrade command so the module's schema and data changes apply, then compile and deploy static content as your deployment procedure requires, and flush the caches. Check the command output for errors and confirm the Stripe configuration section appears in the admin under the payment methods area. Done means the admin loads without errors on the staging store and the Stripe section is visible, with no failed upgrade messages in the logs.

  4. Enter sandbox keys and confirm connection

    Enter the test-mode API keys from your Stripe sandbox account into the plugin configuration, keeping live keys out of every non-production environment. Store the secret key in the protected configuration location your deployment process uses rather than in a shared spreadsheet. Save the configuration, then use the plugin's connection or account check if it provides one. Done means the store reports a successful connection to the sandbox account and the keys are visible only in test mode.

  5. Enable payment methods and webhook endpoints

    Enable the card and local payment methods your market and contracts support, and register the webhook endpoint that Stripe calls to confirm payment events. Confirm the endpoint is reachable over HTTPS from Stripe's side and that the signing secret is stored with the other credentials. Webhooks drive order status changes, so a missing endpoint shows up as orders stuck in pending. Done means a sandbox test payment completes and the matching event is received at the endpoint, with the order status updated to match.

  6. Configure Stripe Tax, origin and product tax codes

    Configure Stripe Tax with your store's origin address and assign product tax codes to catalog items that need them, such as physical goods, digital goods or services. Confirm with your tax adviser which jurisdictions you must collect in and which registrations are in place, because the plugin calculates tax but does not decide your obligations. Tax settings should be reviewed with the people who own filings, not only the implementation team. Done means a test cart shipped to a sample address in each registered jurisdiction shows the expected tax line, and the product codes match your tax adviser's list.

  7. Run test orders across the scenarios

    Place test orders covering each enabled payment method, a successful charge, a declined card, a refund, a partial capture if you use it, and a shipment with a tax line. Check each result in the Stripe sandbox dashboard and in Magento's order and invoice records, and confirm the amounts, tax and currency match. Keep a dated log of results and failures for your change record. Done means every scenario matches expected results in both systems, and the log is signed off before any switch to live keys is scheduled.

How the integration choice changes PCI DSS scope

The card capture method decides which PCI DSS assessment fits your store. PCI DSS applies to any entity that stores, processes or transmits cardholder data or sensitive authentication data, and also to entities whose systems could affect the security of that cardholder data environment. For a Magento Open Source store, the question is not whether the store touches card data, but how far card data travels through your servers. When the Stripe plugin's payment fields are hosted by Stripe, card numbers are entered directly into Stripe-controlled elements and your Magento application receives a token. When card data is posted to your own server before it reaches the processor, your environment sits much closer to the cardholder data, and the assessment usually becomes heavier. Confirm which fields the plugin version you install renders, and which configuration keys, if any, change that behavior, against Stripe's documentation for the Stripe plugins for Adobe Commerce.

The assessment itself is documented on official PCI SSC templates. A Self-Assessment Questionnaire (SAQ) with an Attestation of Compliance (AOC) fits some capture models, while a Report on Compliance (ROC) completed by a Qualified Security Assessor fits others. Certificates are not recognized as validation. PCI DSS v4.0.1 is the only active version of the standard, so the SAQ or ROC you complete should reference it, not the retired v4.0 or v3.2.1. Your Magento hosting, the server hardening, the Content Security Policy configuration and the patch cadence remain in your scope even when the card fields are hosted elsewhere, because they can still affect the security of the payment page. Ask your assessor to map each of those components to a requirement before you commit to a design.

The SAQ type is set by your acquirer and payment brands, not by Stripe or by this plugin, so confirm it with your acquirer before go-live and again after any change to the capture method, plugin version or hosting layout. Put the question in writing: which SAQ or ROC applies, which of your systems are in scope, and whether Stripe's responsibility matrix covers the hosted fields. Stripe can describe what its side provides, and your Qualified Security Assessor can judge your side. Record both answers in the project plan so the scope decision is traceable when the store is upgraded or when a new payment method is added.

Mapping Magento orders, tax and payment data to Stripe

This table shows which Magento Open Source data elements correspond to Stripe objects, who owns each one, and where a mismatch usually surfaces during reconciliation. Read each row as a checkpoint for your build: confirm the exact field-level mappings in the plugin documentation for your Magento and plugin versions before you finalize the design, and test refunds, partial captures and tax rounding in a sandbox.

Magento dataStripe counterpart to confirmOwnerWhere a mismatch shows up
Order and invoice grand totalsPayment Intent amount and charge amount, in the smallest currency unitStore finance and the integration build teamOrder totals in Magento differ from Stripe charges by a minor unit after rounding or currency conversion
Subtotal, shipping and tax linesLine items or tax amounts on the payment or invoice, as the plugin sends themTax lead, with the plugin configuration ownerTax-inclusive and tax-exclusive pricing settings disagree, so captured amounts do not match the invoice
Customer and billing addressCustomer and billing details passed with the payment, used for Stripe Tax calculationEcommerce operations and tax leadTax computed on the shipping address in Stripe but the Magento tax rule uses billing, or the reverse
Tax class and product tax codeTax code mapped to each product or shipping method in Stripe Tax settingsCatalog manager and tax leadProducts without a tax code fall back to a default, producing tax totals that do not match the tax report
Refund amount and credit memoRefund object linked to the original charge, created when a credit memo is issuedFinance operations and supportRefunds issued in Magento without a matching Stripe refund, or refunds that exceed the captured amount
Capture and authorization statusPayment Intent or charge state, such as authorized, captured or canceledOrder management and integration build teamOrders invoiced in Magento while the Stripe authorization has expired or was never captured
Payment method identifierPayment method type recorded on the Stripe object, including local methodsPayments owner and store managerReports group local payment methods under the wrong label, or a method enabled in Magento is not enabled in Stripe
Order ID and transaction referenceMetadata or reference fields that store the Magento order increment IDIntegration build team and finance reconciliationSettlement lines cannot be matched to Magento orders, which slows monthly close and dispute handling
Currency and store viewAccount currency and presentment currency per Magento store viewStore owner and financeMulti-currency orders settle in a different currency than the Magento order records

Security settings for Stripe on Magento Open Source

The Stripe plugin handles payment credentials and runs on the same platform as your storefront and admin, so its security depends on how you store keys, who can change payment settings, how the browser is allowed to load payment scripts, and how quickly you apply patches. The cards below cover these four areas and one caching check that affects checkout.

Keep API secrets out of the codebase

Stripe secret keys and webhook signing secrets should live in environment-level secret storage or a vault, not in files committed to version control or in shared configuration exported to developers. Confirm where the plugin reads each value on your install, how the value is encrypted at rest in the Magento database, and who can view it in the admin. Restrict test and live keys to separate environments so a staging copy cannot charge real cards. Rotate both secret keys and webhook secrets on a documented schedule and after any staff change.

Limit who can change payment settings

Anyone who can edit Stripe settings can redirect payments or disable verification, so treat payment configuration as a privileged function. Review the Magento admin roles that include Stores configuration for payment methods, and remove it from roles that only manage catalog or content. Require two-factor authentication for every admin account that holds these permissions and log changes to payment configuration. Ask your integrator to document which roles are needed for the Stripe settings screens, since role names and resource permissions should be confirmed against the plugin version you install.

Enable CSP controls on payment pages

Adobe documents Content Security Policy headers for Magento Open Source from 2.3.5, and from 2.4.7 the policy runs in restrict mode by default on storefront and admin payment pages. Confirm that your release is at or above 2.4.7 and that the Stripe script and frame sources required by the plugin are listed in the policy, so that checkout loads without being blocked and unexpected script sources are refused. Test the policy in report or non-restrictive mode first on a staging store, because a missing source can break card fields silently. Keep the policy file under change control.

CSP documentation

Apply every patch cycle to platform and plugin

Adobe's upgrade guide recommends upgrading every patch cycle to stay secure and PCI compliant, and its release schedule says security patches ship at least annually for all supported lines. Track the end of regular support for your release line, since 2.4.6 reaches end of regular support on August 11, 2026 and 2.4.7 on May 31, 2027. Test each patch on a copy of production that includes the Stripe plugin, and confirm plugin compatibility with the new PHP and database versions before the window. Record each patch date as evidence for your assessor.

Upgrade guide

Check caching does not serve checkout

Adobe documents Varnish as the full-page cache for self-managed installations. Full-page caching should never store checkout, cart or account pages that contain payment state or customer data. Confirm that your Varnish rules bypass these pages and any Stripe callback or webhook endpoint, and test a full checkout with cache enabled after each change to the cache configuration. A cached payment page can show stale intent status or the wrong customer session.

Common Stripe integration failures and fixes

This table lists the failures teams most often hit when connecting Stripe to a self-hosted Magento Open Source store, with the likely cause, the fix and the log or dashboard to check first. Read each row as a triage path: match the symptom you see, confirm the cause in the named log, then apply the fix in a test store before changing production.

FailureLikely causeFix and where to look
Webhook events not reaching the storeThe endpoint URL in the Stripe dashboard does not match the store's public URL, the web server or firewall blocks the request, or the signing secret in Magento does not match the endpointConfirm the endpoint URL and signing secret, then check delivery attempts and response codes in the Stripe dashboard event logs. Check the web server access log and the Magento system log for rejected requests.
Declined test cards in live modeTest card numbers only work with Stripe test API keys, so a store switched to live mode still sends test card data or uses mismatched keysConfirm the store is using live keys for the live environment and that the test card is not being entered. Review the payment decline reason in the Stripe dashboard payment logs, then use a real card in a controlled order.
Tax not calculated at checkoutOrigin addresses are missing in the tax setup, product tax codes are not assigned, or the store's tax configuration does not match the registrations Stripe Tax is set to useComplete the origin address and product tax code mapping in Stripe, then run a test checkout for each destination region. Check the Stripe Tax settings and the store's tax rules in Magento admin.
CSP blocking the Stripe script on payment pagesA Content Security Policy header does not allow the Stripe script or frame domains, which matters more from 2.4.7 where CSP runs in restrict mode by default on payment pagesAdd the Stripe domains to the policy through the store's CSP configuration, then retest checkout. Look for blocked-resource messages in the browser console and the policy violation reports.
Orders stuck after a timeoutThe customer closes the browser or the payment confirmation is slow, so the order stays pending until a webhook or status update is processedCheck that webhooks are delivered and processed, and that cron and queue consumers run. Compare the order in Magento with the payment intent status in the Stripe dashboard, and review the Magento system log and exception log for failed processing.

Questions buyers ask before hiring help with Stripe

What drives the cost and effort of a Stripe integration on Magento Open Source?

The main drivers are which Stripe plugin you use, how many payment methods and currencies you enable, how much your checkout differs from the default, and how many other extensions touch payments, tax or orders. A partner quote is built from a written scope, so the cost follows the work listed in it. Ask each bidder to separate one-time work (configuration, tax setup, testing, documentation) from recurring work (plugin updates, Magento patch upgrades, monitoring). Ask who pays for the Stripe account setup and any Stripe fees, since those are billed by Stripe and not by the implementer.

Can our in-house team install the Stripe plugin ourselves?

A competent Magento team can usually install and configure a Stripe plugin, but the harder parts are the decisions around it: choosing between the Payments, Billing and Tax plugin and the Stripe Tax plugin, mapping tax rules, handling refunds and webhooks correctly, and proving the result to your assessor. Check whether your team has done a payment extension install on a self-hosted store before, and whether someone owns the code after launch. If the team lacks PCI DSS or payment testing experience, a fixed-scope engagement can cover the build while your staff keep ownership.

How long does testing take for different payment methods and tax rules?

Testing time grows with each payment method, currency, and tax jurisdiction you enable, because each combination needs its own transaction paths, including successful payments, declines, partial refunds and cancellations. Stripe provides test modes that you should use before going live, and you should confirm with Stripe which local payment methods are available in each of your markets. Tax testing needs sample carts for every rate class and region. Ask for the test matrix in the written scope, and agree in advance how many rounds of retesting are included.

What do we need to provide during a Stripe integration project?

Three roles are usually needed. The Stripe account owner creates or confirms the account, enables the payment methods and tax settings, and generates the API keys and webhook endpoints the plugin uses. A store administrator provides access to the Magento admin, the staging and production environments, and the current tax and product configuration. The PCI owner, usually the person accountable for card data in your organization, confirms the integration choice, reviews the scope decision and signs off the evidence. Agree on who holds the keys and how they are rotated before work starts.

What does the PCI DSS assessment need from a Stripe integration?

The assessment depends on how card data flows through your store. A hosted payment approach, where the customer enters card details into Stripe's controlled fields, generally reduces the cardholder data your servers handle, which narrows your PCI DSS scope. Your assessor needs a data flow diagram, the chosen integration and its version, evidence of your Magento configuration, and records of how you patch the platform. PCI DSS is maintained by the PCI Security Standards Council, and the payment brands decide who must validate. Assessments are documented on official templates, either a Report on Compliance from a Qualified Security Assessor or a Self-Assessment Questionnaire, each with an Attestation of Compliance. DeployOpen prepares systems and evidence for assessment but does not issue reports or attestations.

How do Magento patch upgrades affect the Stripe plugin?

Each Magento patch can change core classes, APIs or the payment framework that the plugin depends on, so a patch upgrade is a retest event for payments, not a routine file copy. Adobe recommends upgrading every patch cycle to stay secure and PCI compliant, and it names customizations, extension count, third-party integrations and coding practices as drivers of upgrade effort. Before you upgrade, confirm the plugin version supports your target Magento release, run the Upgrade Compatibility Tool, and repeat the payment test matrix in staging. Ask your implementer whether plugin updates and retests are covered by a retainer or billed separately.

Do we need Stripe Tax if we already use another tax service?

Stripe documents two plugins for Magento Open Source. The Payments, Billing and Tax plugin covers a wide range of payment methods with tax automation, while the Stripe Tax plugin suits stores that do not use Stripe for payments. Choose based on where your payments run and which tax calculation service you already trust for filing. Running two tax engines at once can produce mismatched totals, so the decision should be written down and tested with sample orders across your tax jurisdictions. Confirm current jurisdiction coverage and filing responsibilities with Stripe and your tax advisor.

Testing and running Stripe payments after launch

Testing a Stripe integration on Magento Open Source is a staged exercise, not a single checkout test. Before go-live, run sandbox orders across every payment method you plan to offer, including cards, wallets and any local methods your Stripe account enables. For each, confirm the order is created in Magento, the payment status updates correctly and the Stripe dashboard shows a matching payment. Then test refunds and partial captures from the admin, because these are where order totals, invoices and Stripe balances most often drift apart. Include failed payments (declined cards, authentication required and abandoned checkouts) and confirm that stock reservations, customer messages and order states behave as your operations team expects. Check the plugin's documentation for which capture modes and refund paths it supports before you write the test cases.

Tax needs its own matrix. Build test carts that cover your main rate scenarios: domestic and cross-border shipping addresses, tax-exempt customers, discounts applied before and after tax, multi-line carts with mixed tax treatment, and returns. Compare the tax Stripe Tax calculates with what your finance team expects from your registrations and product tax codes. Webhook replay is the part most teams skip. Ask your Stripe and Magento administrators to replay selected events in the sandbox, confirm that repeated events do not create duplicate orders or invoices, and confirm that a missed event can be recovered. Only move to a staged go-live, starting with a limited set of live products or a small customer group, once these results are signed off in writing.

After launch, treat the integration as a monitored service. Watch webhook delivery failures and retries, review Stripe event logs on a set schedule, and reconcile Stripe payouts against Magento invoices and refunds. Alert on payments that succeed in Stripe but leave Magento orders unpaid, since that pattern usually signals a webhook or callback problem. Re-run the core regression suite after every Magento patch, every plugin update and every change to payment or tax settings, because Adobe's upgrade guidance treats patching as an ongoing cycle. Ask your partner or plugin vendor which versions are supported on each Magento release line before you schedule those updates. Record every test run and its evidence, since those records support your PCI DSS scope review.

How a Stripe payment and tax call flow through the store

The flow starts when a shopper submits checkout on the Magento storefront, which hands the request to the Stripe plugin running inside the store's own code. The plugin calls Stripe's API directly, and Stripe sends webhook events back to the store to update the order record. The boundary to check is where card details are entered: if the card form is hosted by Stripe, card numbers go to Stripe and bypass the store's servers, which is the main factor in how much of the PCI DSS scope stays with the merchant. Confirm the exact fields and tokens with the plugin version your team installs.

Card entry, plugin calls, Stripe API and webhooks, with the order record update.

How DeployOpen works on this

DeployOpen plans, implements, customizes, integrates, hardens, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For the Stripe integration on Magento Open Source, that means the payment flow, tax settings and PCI DSS scope decisions are agreed in writing, built in your environment and handed over with evidence your security and compliance teams can review.

How we scope

  • Review your catalog, checkout flow, markets, currencies and tax obligations before any build starts.
  • Confirm which Stripe plugin fits your payment methods and whether Stripe Tax is used for tax calculation.
  • Document the cardholder data flows and the PCI DSS scope decision in the written scope for your assessor.
  • Agree deliverables, environments and timelines in writing, since most engagements are fixed-scope.

How we build

  • Install and configure the Stripe plugin against the Magento Open Source release and PHP version you run.
  • Set up sandbox and live Stripe accounts, webhooks and keys in your infrastructure, with secrets kept out of code.
  • Test checkout for cards, local payment methods, refunds, declines and tax calculation before go-live.
  • Review Content Security Policy and admin access settings that touch the payment pages.

How we hand over

  • Deliver configuration records, architecture notes and a payment data flow diagram for your review.
  • Provide runbooks for key rotation, webhook failures, refunds and plugin updates.
  • Document the controls and evidence that support your PCI DSS scoping, without issuing any attestation ourselves.
  • Walk your team through the handover so operators can run the integration without us.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Plan plugin and Magento patch updates with your release calendar, including retesting of payment flows.
  • Retest the integration after changes to the store, tax rules or Stripe plugin versions.
  • Confirm with your team and your QSA which changes trigger a new PCI DSS scope review.

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.