• 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

    (@nahuelmahe)

    Hello @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

    (@buztek)

    Yes there both created in the stripe account

    Plugin Author Nicolas Figueira

    (@nahuelmahe)

    Hello @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.