### [Error: Invalid Parameters Were Supplied to Stripe API](https://wpforms.com/docs/error-invalid-parameters-were-supplied-to-stripe-api/)

**Published:** September 29, 2024
**Author:** Umair Majeed

**Excerpt:** Learn how to fix the 'Invalid parameters were supplied to Stripe API' error in WPForms.

**Content:**

## 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](https://wpforms.com/docs/how-to-properly-test-your-wordpress-forms-before-launching-checklist/) 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](https://wpforms.com/docs/how-to-install-and-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](https://wpforms.com/docs/viewing-and-managing-stripe-payments/) to learn how.

**Categories:** Error Library

---

