• Resolved .jess.

    (@jess-1)


    Hello,

    I set up the following product in stripe:
    ID
    prod_CrJCvtlAwdBJIu
    Created
    2018/05/14 16:54
    Name
    test product
    Statement descriptor
    test

    I put the following short code on page:
    [direct-stripe type=”subscription” amount=”prod_CrJCvtlAwdBJIu”]

    I am getting the following error message in stripe logs:
    Request POST body
    {
    “customer”: “cus_CrKlhIGRq3pkEe”,
    “plan”: “prod_CrJCvtlAwdBJIu”,
    “metadata”: {
    “description”: “Web Design, Graphic Design & More”
    }
    }
    Response body
    {
    “error”: {
    “code”: “resource_missing”,
    “doc_url”: “https://stripe.com/docs/error-codes/resource-missing”,
    “message”: “No such plan: prod_CrJCvtlAwdBJIu”,
    “param”: “plan”,
    “type”: “invalid_request_error”
    }
    }

    Am I doing something wrong?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Nicolas Figueira

    (@nahuelmahe)

    Hello @jess-1,

    Thank you for using Direct Stripe.

    There has been confusion with subscriptions since Stripe converted plans as a type of Product, I am working on an update of the plugin and will try to make make it less confusing.

    Until then, the ID to be used in the amount parameter of the shortcode when using subscription type is the ID of the Pricing plan associated with a product.
    If left empty during the creation of the pricing plan, the ID looks like plan_Cv8dz6ISgXcAgf

    Best regards

Viewing 1 replies (of 1 total)
  • The topic ‘Not working – No such plan (error 400)’ is closed to new replies.