Stripe logo

Magento + Stripe integration for your eCommerce store

Seamless Magento–Stripe integration for secure payments, automated refunds, SCA compliance, and faster checkout performance.

Set up your integration
Trusted by 700+ leading brands worldwide
Trusted by 700+ leading brands worldwide

Magento and Stripe integration in short

Most Magento (Adobe Commerce) stores integrate Stripe with Stripe's own Payments, Billing, and Tax module (Composer package stripe/stripe-payments), choosing either the embedded Payment Element or a redirect to Stripe Checkout; Stripe says both are SAQ A eligible. Stores on Hyvä Checkout add the published Hyvä compatibility module, and headless storefronts use the GraphQL and REST extensions the module adds. Order status depends on Stripe webhooks reaching Magento, so the webhook endpoint and cron need monitoring from day one.

What is the Magento + Stripe integration

Integrating Stripe with Magento creates a fast, secure, and modern payment experience for shoppers while giving merchants full control of transactions, reporting, and fraud protection. Stripe supports global payments, subscription billing, digital wallets, and advanced fraud detection—making it one of the most flexible payment processors for Magento merchants.

A proper Magento–Stripe integration ensures:

• Faster checkout with saved cards and one-click payments  

• Strong Customer Authentication (SCA) and PSD2 compliance  

• Multi-currency support for international customers  

• Real-time payment status updates  

• Automated refunds and partial refunds directly in Magento  

• Support for Apple Pay, Google Pay, and local payment methods  

The integration can be done using the official Stripe module or a custom API-based implementation, depending on business requirements, custom checkout flows, or unique regional payment needs.

Stripe logo

Magento + Stripe integration benefits

Enable Apple Pay, Google Pay, and one-click checkout to reduce friction
Support multiple payment methods: cards, bank redirects, Klarna, Afterpay
Automate refunds and partial refunds directly in Magento admin
Sync payment statuses and events to Magento in real time via Stripe Webhooks
Prevent fraud using Stripe Radar rules and machine learning
Manage subscription and recurring payments with Stripe Billing

How the Magento 2 Stripe integration works technically

• Stripe API version mapping must match the module configuration  

• Webhooks must be configured for: charge.succeeded, payment_intent.succeeded, refund.created, dispute.created  

• SCA and PSD2 support require integration with Payment Intents API  

• Customers’ card tokens should be stored using Stripe’s secure vault (not in Magento)  

• Multi-currency support depends on enabled currencies in both Magento and Stripe  

• Subscription handling requires Stripe Billing integration and webhook synchronization  

• Test mode and live mode require separate keys and configurations  

• PCI compliance is simplified since Stripe handles card data directly

Ways to connect Magento and Stripe

OptionTypeBest forNotes
Stripe Payments, Billing, and Tax module (stripe/stripe-payments)ConnectorMost Magento stores, including multi-store setupsStripe's own module, ordered on the Adobe Marketplace and installed with Composer. The current release supports Adobe Commerce and Magento Open Source 2.3.7 to 2.4.x, offers an embedded Payment Element or a redirect to Stripe Checkout, and includes Express Checkout wallets (Link, Apple Pay, Google Pay), a subscription engine on Stripe Billing, and 3D Secure 2.
Hyvä Checkout compatibility module for StripeConnectorStores that run Hyvä Checkout instead of the Luma checkoutHyvä's checkout integration tracker lists the Stripe integration as published and CSP compatible, with the Composer package hyva-themes/magento2-hyva-checkout-stripe on top of stripe/stripe-payments.
Stripe module GraphQL and REST extensionsCustom APIHeadless, PWA, and mobile storefronts built on Magento's APIsThe module adds a getStripeConfiguration query, a stripe_payments input on setPaymentMethodOnCart, a client_secret on placeOrder for finishing 3D Secure with stripe.handleNextAction, and mutations to list, add, and delete saved payment methods.
Stripe Tax plugin for Adobe CommerceConnectorStores that keep another payment provider but want Stripe Tax calculation and reportingStripe ships tax as a separate plugin for merchants who do not use Stripe to accept payments. Stores that use the payments module get Stripe Tax through that module instead.

What syncs between Magento and Stripe

DataDirectionSystem of recordTiming
Card and wallet detailsShopper browser to StripeStripe (the Payment Element is an iframe, so card data does not pass through Magento)Real time at checkout
Order and paymentMagento to StripeMagento for the order, Stripe for the paymentAt place order
Payment confirmation (charge.succeeded)Stripe to Magento via webhooksStripe until the event moves the order from Pending Payment to ProcessingAsynchronous, after the bank confirms or declines
CapturesMagento to StripeMagento invoiceWhen an Authorize Only order is invoiced, within the 7-day authorization window
RefundsMagento to StripeMagento credit memoWhen the credit memo is submitted; partial refunds made in the Stripe Dashboard do not create credit memos (module 4.1 and later)
Fraud reviewStripe Radar to MagentoStripe RadarAt payment; payments Radar marks as risky can put the order On Hold
Subscription paymentsStripe Billing to Magento via webhooksStripe BillingEach billing cycle

How a Magento Stripe integration project runs

  1. Pick the checkout flow: the embedded Payment Element keeps shoppers on your checkout page, the redirect sends them to Stripe Checkout; Stripe says both are SAQ A eligible.
  2. Order the module on the Adobe Marketplace, run composer require stripe/stripe-payments, then setup:upgrade, di:compile, and static content deploy in production mode.
  3. Install the Adobe Commerce app from the Stripe App Marketplace to generate restricted keys, and enter separate sandbox and live keys per store view or website.
  4. Set the payment action to match fulfillment: Authorize and Capture, Authorize Only (capture by invoicing within 7 days), or Order (save the method and charge later).
  5. Confirm the webhook endpoint the module creates is publicly reachable, cron is running, and the pending payment order lifetime suits your stock.
  6. On Hyvä Checkout add the Hyvä Stripe module; on 2.4.7 and later, allow the Stripe.js domains in the payment page CSP.
  7. Test in sandbox with 3D Secure cards, declines, abandoned redirects, wallets on a registered domain, partial invoices, and credit memos, then switch to live and watch the webhook error rate.

Common problems and how to avoid them

A test copy with live keys can break live webhooks

The module creates one webhook endpoint per Stripe account and rechecks it hourly and whenever API keys or store URLs change. At a European smart home device brand, a local install running on a copy of the live database repointed the live endpoint to a non-public address, so orders sat in Pending Payment and many were auto-cancelled before the events were replayed with bin/magento stripe:webhooks:process-events-range. Replays fixed pending orders but could not restore auto-cancelled ones, so keep live keys out of every non-production environment.

Two webhooks for one order can collide

On the same store, payment_intent.canceled and checkout.session.expired arrived at the same moment for an abandoned Stripe Checkout session: one event cancelled the items while the other set the order to Pending Payment, and the cleanup cron then could not cancel it. The fix we prepared skips payment_intent.canceled for checkout orders still in Pending Payment and lets Magento's pending payment cleanup cancel them.

Custom saved-card steps must handle 3D Secure

A US online retailer's customized Hyvä saved-card flow did not handle a SetupIntent in requires_action status. Shoppers saw an error, retried, the payment succeeded in Stripe, and no Magento order was created. The fix opens authentication in the browser with handleNextAction and then finalizes the SetupIntent on the server before the order is placed.

Split shipments and the 7-day authorization

Uncaptured card payments must be captured within 7 days, and by default a partial capture releases the rest of the authorization, so a second shipment needs a new payment that can fail. Multicapture and extended authorizations of up to 30 days are IC+ pricing features. Since module 4.1, partial captures and refunds made in the Stripe Dashboard no longer create Magento invoices or credit memos, so do them in the Magento admin.

Module upgrades can change checkout defaults

Stripe notes that minor and major releases can break backward compatibility and that customizations must be ported. In a Magento 2.4.9 upgrade we ran, the new Stripe module came with Adaptive Pricing (paying in the shopper's currency) disabled by default, and a Hyvä Stripe module update broke the store's custom express checkout templates. Both needed a data patch or template fix before go-live.

Strict CSP on payment pages blocks unlisted scripts

From 2.4.7, Magento runs Content Security Policy in restrict mode on storefront and admin payment pages, so inline or third-party scripts that are not whitelisted stop running. Stripe publishes the script-src, frame-src, and connect-src domains that Stripe.js, Link, and 3D Secure need; add them to csp_whitelist.xml or use the CSP nonce provider.

Why choose scandiweb to handle Magento integration for you?

Deep Magento payment integration expertise
We build custom Magento payment integrations with Stripe that go beyond plugins—covering complex checkout flows, webhooks, and edge cases.
Proven experience with high-volume transactions
Our Stripe integrations are designed to handle high order volumes, peak traffic, and global sales without payment failures or performance bottlenecks.
Optimized SCA & checkout conversion flows
We implement Stripe Payment Intents and SCA flows that meet compliance requirements while minimizing friction and abandoned checkouts.
Secure payment architecture by design
All Stripe integrations follow PCI best practices, tokenization standards, and secure webhook handling to protect customer and transaction data.
Multi-currency and global payment support
We enable Stripe setups that support multiple currencies, local payment methods, and regional compliance for international Magento stores.
Clear ownership and ongoing support
From initial Stripe setup to post-launch monitoring and improvements, our Magento team owns the integration and supports it long-term.

Frequently Asked Questions about Magento Stripe integration

Does Stripe support One-Click Checkout in Magento?

Yes. Using Stripe’s saved card tokens and Payment Intents, Magento can offer one-click payment for returning customers.

How do refunds work?

Refunds and partial refunds can be executed directly from Magento’s order view. Stripe updates the status instantly through webhooks.

Is the integration SCA compliant?

Yes. Stripe’s Payment Intents API supports Strong Customer Authentication (SCA) and is fully PSD2 compliant.

Can I use Apple Pay and Google Pay?

Yes. Stripe supports major digital wallets, and they can be enabled with simple configuration.

Does Stripe support multi-currency?

Yes. Stripe processes payments in over 135 currencies. Magento must also have these currencies enabled.

Do I need PCI compliance? 

PCI burden is reduced because payment data never touches Magento—Stripe handles it through hosted fields and tokenization.

Why are Magento orders stuck in Pending Payment with Stripe?

Usually Stripe events are not reaching Magento. Check the endpoint's error rate in the Stripe Dashboard, recreate it with bin/magento stripe:webhooks:configure if needed, then resend missed events with the module's process-event, process-events-range, or process-events-date-range commands.

Should I use the embedded Payment Element or Stripe Checkout in Magento?

The embedded Payment Element keeps shoppers on your checkout page, while Stripe Checkout is a payment page hosted by Stripe. Stripe says both are SAQ A eligible, and you switch between them with the Payment flow setting.

Does the Stripe Magento module work with Hyvä Checkout?

Yes. Hyvä's checkout integration tracker lists a published, CSP-compatible Stripe module, hyva-themes/magento2-hyva-checkout-stripe, which runs on top of Stripe's own stripe/stripe-payments module.

Can I use Stripe with headless Magento or a PWA storefront?

Yes. The module extends Magento's GraphQL and REST APIs: getStripeConfiguration returns the publishable key, setPaymentMethodOnCart takes a stripe_payments token, and placeOrder returns a client_secret for 3D Secure.

How long can Magento hold a Stripe card authorization?

Seven days for standard online card payments. The Expired authorizations option recreates the payment with the saved card after that, and IC+ accounts can use extended authorizations of up to 30 days depending on the card network.

Can Stripe handle subscriptions in Magento?

Yes. The module includes a subscription engine on Stripe Billing with configurable subscription products, trials or initial fees, and Stripe's handling of failed renewals and updated card details.

Start your Magento + Stripe integration

1. Submit your integration request

Fill out the form and share your integration requirements.

2. Join a free strategy & discovery call

Join a 60-minute session with our Magento integration specialists.
We’ll review your business systems, identify key challenges, and uncover actionable opportunities.

3. Get a tailored proposal

After the consultation, receive a detailed proposal with clear, high-impact steps to integrate Magento with the tools your business needs to thrive.

Trusted by 700+ leading brands worldwide

We check submissions regularly - we will reply soon
22+
years in eCommerce
600+
in-house experts
2,100+
projects delivered
700+
clients served
$4B+
in client revenue per year