• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Payments Plugin for Stripe

Stripe payment plugins for your WordPress site

  • Home
  • Documentation
  • Addons
  • Login
    • Sign In
    • Edit Profile
    • Terms & Conditions
    • My Downloads
    • License Key
  • Support
    • Support Forum
    • Forum Search
    • Forum Login
    • Forum Registration
    • Email Support for Customers
  • Contact Us
  • Show Search
Hide Search
You are here: Home / Topics / Stripe API error occurred: Your card was declined.

[Support request] Stripe API error occurred: Your card was declined.

· ·

Home › Forums › Stripe Payments Plugin › Stripe API error occurred: Your card was declined.

Tagged: API Error

  • This topic has 6 replies, 2 voices, and was last updated 1 year, 7 months ago by Admin.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • August 12, 2021 at 12:58 pm #4172
    AlexM
    Participant

    Getting this API error in both test and live modes on all transactions regardless of what card I use:
    Debug log link:
    [reikodesign.com/wp-admin/?asp_action=view_log&token=77a03f2167e52502]

    August 12, 2021 at 11:31 pm #4173
    Admin
    Keymaster

    Is there any other additional info in the error email that was sent?

    Is this a valid card? Looks like Stripe is declining the card you are using.

    Set everything in test mode (if that is possible) then post the URL of the page with the button so I can try a test mode transaction.

    August 14, 2021 at 2:01 am #4188
    AlexM
    Participant

    Thank you for the Quick reply.

    1. yes this is a valid card, Same happened with a 2nd valid card.

    2. I don’t see additional info in the email

    3. I switched to test mode and here is the landing page with the button:
    [reikodesign.com/design-your-dream-feng-shui-course]

    August 15, 2021 at 2:17 am #4189
    Admin
    Keymaster

    Looks like Stripe is telling our plugin that the API key you provided in the settings is incorrect. Stripe is giving the following response to our plugin when it tries to submit the info to Stripe:

    
    Invalid API Key provided
    

    Double check the API key in your stripe account and make sure you have copied and pasted the correct API keys in the correct fields. Sometimes users make a copy and paste mistake. The following page has info on how to configure the API keys:

    General Settings Configuration of the Stripe Payments Plugin

    Also, edit the individual product and check if you have entered API key info in there. If you did, double check that API key value.

    August 16, 2021 at 7:40 pm #4191
    AlexM
    Participant

    The issue is that the website has multiple products and all of them were working fine with the existing API key configuration until recently. Now none of them work. The individual products do not have API key info.

    August 17, 2021 at 10:35 pm #4196
    AlexM
    Participant

    I see this message in the plugin. Does this help to troubleshoot?
    The products were working before.

    “The new version of the Stripe Payments plugin has the SCA compliant API support. However, you’re still using the legacy API.

    Click here to check whether your business needs to support Strong Customer Authentication (SCA). If it does, disable legacy API by unchecking the “Enable Legacy Checkout API” checkbox in the Advanced Settings tab of the plugin.

    Don’t show this message again”

    August 18, 2021 at 12:58 am #4207
    Admin
    Keymaster

    Yes that’s a clue. Go to the “Advanced Settings” menu of the plugin and then uncheck the “Enable Legacy Checkout API” checkbox and save the settings. Stripe is slowly discontinuing their old API usage. So you need to make sure to use the new API (which our plugin supports).

    Also, go to your stripe merchant account dashboard and make sure that you are using the latest API in your account.

    On a side note: Looks like you may have switched your site to use SSL certificate but you are not enforcing that all pages be loaded using the “HTTPS” URL. Do the following:

    1) Check all the settings field to see if there is any URL that is using a non-https URL. If it is then update that URL value to use the “https” URL and save the settings.

    2) Use a plugin like the following to force all pages on your site to be loaded using the HTTPS version:

    Easy HTTPS Redirection (SSL)

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Log In

Primary Sidebar

Featured Addons and Extensions

  • Subscription Payments Addon
  • Additional Custom Fields
  • Secure Downloads Addon
  • Apple Pay, Google Pay, Afterpay

Addon Bundle

Stripe Payments Addon Bundle

Support Links

  • Support Forum
  • Support Contact

Search

Copyright © 2023 | Stripe Plugins | A member of the Tips and Tricks HQ family.