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 3 years, 1 month ago by Admin.
-
AuthorPosts
-
August 12, 2021 at 12:58 pm #4172AlexMParticipant
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 #4173AdminKeymasterIs 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 #4188AlexMParticipantThank 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 #4189AdminKeymasterLooks 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 Accept 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 #4191AlexMParticipantThe 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 #4196AlexMParticipantI 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 #4207AdminKeymasterYes 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:
-
AuthorPosts
- You must be logged in to reply to this topic.