Skip to content
Create account
or
Sign in
The Stripe Docs logo
/
Ask AI
Create account
Sign in
Get started
Payments
Revenue
Platforms and marketplaces
Money management
Developer resources
Overview
Versioning
Changelog
Upgrade your API version
Upgrade your SDK version
Essentials
SDKs
API
Testing
Stripe CLI
Tools
Workbench
Developers Dashboard
Stripe Shell
Stripe for Visual Studio Code
Features
Workflows
Event destinations
Stripe health alertsFile uploads
AI solutions
Agent toolkit
Security and privacy
Security
Privacy
Extend Stripe
Build Stripe apps
Use apps from Stripe
    Overview
    Stripe-built apps
    Adobe Commerce
      Cookbooks
        Add additional metadata to payments
        Add custom events to Stripe webhooks
        Add external payment methods to the payment form
        Disable shipping methods in the Express Checkout modals
        Enable manual capture
        Enable multicapture
        Enable overcapture
        Hide the terms displayed in the PaymentElement form
        Integrate a custom fee to the tax calculation
        Place an order before a 3D Secure payment is collected
        Style the payment form at the checkout
        Test why a specific payment method doesn't appear
      Payments and tax app for Adobe Commerce
      Standalone tax app for Adobe Commerce
    Cegid
    Commercetools
    Mirakl
    NetSuite
    Oracle Opera
    PrestaShop
    Salesforce
    SAP
    Shopware 6
    Stripe Tax for BigCommerce
    Stripe Tax for WooCommerce
    Partner apps
    Build your own app
Partners
Partner ecosystem
Partner certification
HomeDeveloper resourcesUse apps from StripeAdobe CommerceCookbooks

Test why a specific payment method doesn't appear

Force a payment method to appear so you can test it.

Some payment methods only appear when specific conditions are met. For cases where you can’t get a specific payment method to appear, you can force-enable it with a small change in the Stripe module. If you then navigate to the checkout page, it displays an error that explains the reason the payment method is unavailable.

Debugging approach

For example, say that Klarna doesn’t appear at checkout. To find out the reason, open Helper/PaymentMethodTypes.php and make the following adjustment:

@@ -15,6 +15,8 @@ class PaymentMethodTypes public function getPaymentMethodTypes() { return ['klarna']; }

If you now navigate to the checkout page, an error is displayed explaining why klarna is unavailable.

For more payment method codes, click here.

Was this page helpful?
YesNo
Need help? Contact Support.
Join our early access program.
Check out our changelog.
Questions? Contact Sales.
LLM? Read llms.txt.
Powered by Markdoc