Title: Error 400 &#8211; Subscription plan not working
Last modified: May 5, 2019

---

# Error 400 – Subscription plan not working

 *  Resolved [etienneflorent](https://wordpress.org/support/users/etienneflorent/)
 * (@etienneflorent)
 * [7 years ago](https://wordpress.org/support/topic/error-400-subscription-plan-not-working/)
 * Hello,
 * So I have created a button subscription plan on my page.
 * When trying to test the button, the following happens :
 * 1. The sentence “processing” appears
    2. The same page refreshes
 * And on my log dashboard on Stripe, I got different messages saying error 400 
   + status 200 OK.
 * I have set a redirection to a thank you page but that does not work as well.

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

 *  Thread Starter [etienneflorent](https://wordpress.org/support/users/etienneflorent/)
 * (@etienneflorent)
 * [7 years ago](https://wordpress.org/support/topic/error-400-subscription-plan-not-working/#post-11498225)
 * I have contacted stripe but they couldn’t help me…
 * They just sent me this answer :
 * > [View post on imgur.com](https://imgur.com/a/jalUNoF)
 *  Thread Starter [etienneflorent](https://wordpress.org/support/users/etienneflorent/)
 * (@etienneflorent)
 * [7 years ago](https://wordpress.org/support/topic/error-400-subscription-plan-not-working/#post-11498276)
 * Here is a screenshot of my logs on stripe :
 * [https://ibb.co/pyw2kP1](https://ibb.co/pyw2kP1)
 * I have also tried to remove/add a stripe ID on Users>Your Profile> Stripe ID 
   Identification
 *  Plugin Author [Nicolas Figueira](https://wordpress.org/support/users/nahuelmahe/)
 * (@nahuelmahe)
 * [7 years ago](https://wordpress.org/support/topic/error-400-subscription-plan-not-working/#post-11499411)
 * Hello [@etienneflorent](https://wordpress.org/support/users/etienneflorent/) ,
 * Thanks again for using Direct Stripe.
 * I think that Stripe answered your question, you seem to be using the product 
   ID instead of the Plan ID for the subscription.
    Please get the plan ID and paste
   it in your Direct Stripe button settings.
 * If that doesn’t fix your issue, could you share a screenshot of the actual 400
   error for the subscription api call ? ( after opening the log, because the list
   of logs does not contain the actual error message ).
 * Kind regards,
 *  Thread Starter [etienneflorent](https://wordpress.org/support/users/etienneflorent/)
 * (@etienneflorent)
 * [7 years ago](https://wordpress.org/support/topic/error-400-subscription-plan-not-working/#post-11499507)
 * I am not sure where I can find the Plan ID.
 * I created a test subscription plan and after this, there is only one ID that 
   is generated called: prod_F0oQNSaGbizEn6
 * …no sign of any ID starting with plan_
 * Here is a screenshot of the log from the inside :
 * [https://imgur.com/XJXf6FU](https://imgur.com/XJXf6FU)
 *  Thread Starter [etienneflorent](https://wordpress.org/support/users/etienneflorent/)
 * (@etienneflorent)
 * [7 years ago](https://wordpress.org/support/topic/error-400-subscription-plan-not-working/#post-11499510)
 * Here is a screenshot of my created test plan :
 * [https://imgur.com/hhklpbI](https://imgur.com/hhklpbI)
 *  Thread Starter [etienneflorent](https://wordpress.org/support/users/etienneflorent/)
 * (@etienneflorent)
 * [7 years ago](https://wordpress.org/support/topic/error-400-subscription-plan-not-working/#post-11499539)
 * And a screenshot of my settings in Direct Stripe:
 * > [View post on imgur.com](https://imgur.com/a/I91WRF1)
 *  Plugin Author [Nicolas Figueira](https://wordpress.org/support/users/nahuelmahe/)
 * (@nahuelmahe)
 * [7 years ago](https://wordpress.org/support/topic/error-400-subscription-plan-not-working/#post-11499843)
 * Hello [@etienneflorent](https://wordpress.org/support/users/etienneflorent/) ,
 * I’m sorry I could have explained better.
 * You need to create a Pricing Plan in your Product, that will set a pricing plan
   ID, which is the ID used to create subscriptions ( to a plan…)
    In you product
   page you will find an Add pricing plan button ( [https://screenshots.firefox.com/Blzx47mSWrXJnA6K/dashboard.stripe.com](https://screenshots.firefox.com/Blzx47mSWrXJnA6K/dashboard.stripe.com))
 * Kind regards,
 *  Thread Starter [etienneflorent](https://wordpress.org/support/users/etienneflorent/)
 * (@etienneflorent)
 * [7 years ago](https://wordpress.org/support/topic/error-400-subscription-plan-not-working/#post-11499883)
 * Ok,
 * Thank you Nicolas! For now, it seems that it’s working!
 * For other people wondering where this Pricing Plan button is located, here is
   a screenshot :
 * > [View post on imgur.com](https://imgur.com/a/bKffjhk)
 * Many thanks to Nicolas, that developed this awesome plugin! You are the best:)
    -  This reply was modified 7 years ago by [etienneflorent](https://wordpress.org/support/users/etienneflorent/).
 *  Plugin Author [Nicolas Figueira](https://wordpress.org/support/users/nahuelmahe/)
 * (@nahuelmahe)
 * [7 years ago](https://wordpress.org/support/topic/error-400-subscription-plan-not-working/#post-11501798)
 * Thank you [@etienneflorent](https://wordpress.org/support/users/etienneflorent/),
 * Don’t hesitate to leave a review at [https://wordpress.org/support/plugin/direct-stripe/reviews/](https://wordpress.org/support/plugin/direct-stripe/reviews/),
   that helps.
 * Kind regards

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

The topic ‘Error 400 – Subscription plan not working’ 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/)

## Tags

 * [not working](https://wordpress.org/support/topic-tag/not-working/)
 * [subscription](https://wordpress.org/support/topic-tag/subscription/)

 * 9 replies
 * 2 participants
 * Last reply from: [Nicolas Figueira](https://wordpress.org/support/users/nahuelmahe/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/error-400-subscription-plan-not-working/#post-11501798)
 * Status: resolved