Error: Invalid Parameters Were Supplied to Stripe API

Summary

The ‘Invalid parameters were supplied to Stripe API’ error occurs when processing a Stripe payment through a WPForms form. This error indicates that there’s an issue with the Stripe integration or configuration, preventing the transaction from being completed.

Causes

This error typically occurs due to:

  • Incomplete domain verification for Stripe payment elements
  • Incorrect or outdated Stripe API keys
  • Improper connection between your WordPress site and Stripe

Solution

To resolve this issue, follow these steps:

  1. Reconnect your Stripe account: Go to WPForms » Settings and click on the Payments tab. From there, disconnect your current Stripe account and then reconnect by clicking the Connect with Stripe button.
  2. Verify API keys: Ensure your API keys have the correct prefixes:
    • Test Publishable Key: pk_test
    • Test Secret Key: sk_test
    • Live Publishable Key: pk_live
    • Live Secret Key: sk_live
  3. Check domain verification: Go to WPForms » Settings and look for any notifications about Stripe payment elements or domain verification. If you see such a notification, contact Stripe support for assistance with manually registering your domain.

After making any changes, thoroughly test your form to ensure that payments are being processed correctly.

For more information on setting up Stripe payments in WPForms, check out our guide on how to use the Stripe addon with WPForms.

That’s it! You now know how to troubleshoot and resolve the ‘Invalid parameters were supplied to Stripe API’ error.

Next, are you interested in tracking your Stripe transactions? Be sure to check out our tutorial on viewing and managing Stripe payments to learn how.

The Best WordPress Drag and Drop Form Builder Plugin

Easy, Fast, and Secure. Join over 6 million website owners who trust WPForms.

Please enable JavaScript in your browser to complete this form.