Title: invalid_request_error
Last modified: November 1, 2016

---

# invalid_request_error

 *  [buztek](https://wordpress.org/support/users/buztek/)
 * (@buztek)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/invalid_request_error/)
 * On trying to do a subscription i get a 400 error in stripe with description: “
   invalid_request_error”
    message: “You passed an empty string for ‘plan’. We assume
   empty values are an attempt to unset a parameter; however ‘plan’ cannot be unset.
   You should remove ‘plan’ from your request or supply a non-empty value.” param:“
   plan”
 * my short code is: [direct-stripe type=”subscription” amount=”web-hosting-25″ 
   coupon=”first-month” description=”Your monthly web hosting” label=”Subscribe”
   panellabel=”£25 PM Web hosting”]

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Nicolas Figueira](https://wordpress.org/support/users/nahuelmahe/)
 * (@nahuelmahe)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/invalid_request_error/#post-8385281)
 * Hello [@buztek](https://wordpress.org/support/users/buztek/),
 * Thank you for using Direct Stripe, all your feedback is appreciated.
 * Did you create the plan id “web-hosting-25” in your Stripe admin panel?
    And 
   the coupon id “first-month?
 * And made sure they are exactly spelled the same?
 *  Thread Starter [buztek](https://wordpress.org/support/users/buztek/)
 * (@buztek)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/invalid_request_error/#post-8391769)
 * Yes there both created in the stripe account
 *  Plugin Author [Nicolas Figueira](https://wordpress.org/support/users/nahuelmahe/)
 * (@nahuelmahe)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/invalid_request_error/#post-8391998)
 * Hello [@buztek](https://wordpress.org/support/users/buztek/),
 * I reproduced this error only when the plan was not created or plan id mispelled,
   i assume you are using the stripe test API keys, did you create the plan with
   test mode switched on in stripe’s admin panel? (Or if plans created in live mode
   => live API keys)
 * Regards,

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘invalid_request_error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/direct-stripe_7787ff.svg)
 * [Direct Stripe](https://wordpress.org/plugins/direct-stripe/)
 * [Support Threads](https://wordpress.org/support/plugin/direct-stripe/)
 * [Active Topics](https://wordpress.org/support/plugin/direct-stripe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/direct-stripe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/direct-stripe/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Nicolas Figueira](https://wordpress.org/support/users/nahuelmahe/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/invalid_request_error/#post-8391998)
 * Status: not resolved