• Resolved jbyer1988

    (@jbyer1988)


    Love the simplicity of your app but I am having issues getting a success.

    Here is where I am using the plugin: https://www.jason-byer.com/marketing-mastermind-businesses-groupon/

    Here is the shortcode I am using for the button:
    [direct-stripe type=”subscription” amount=”100″ description=”marketing” label=”Buy Now” panellabel=”$1 – Sign Me Up”]

    Here is what I get in Stripe:

    STATUS DESCRIPTION
    400 ERR POST /v1/subscriptions
    200 OK POST /v1/customers
    200 OK POST /v1/tokens

    Here are the details for “400 ERR POST”

    Request POST body
    {
    “customer”: “cus_BakHczl8Vz6U2D”,
    “plan”: “100”,
    “metadata”: {
    “description”: “marketing”
    }
    }

    Response body
    {
    “error”: {
    “type”: “invalid_request_error”,
    “message”: “No such plan: 100”,
    “param”: “plan”
    }
    }

    Here is the plan I am using set up the exact in both test and live. Currently, the Direct Stripe settings are turned to TEST.

    Plan details
    Edit details
    ID
    marketing
    Name
    The Marketing Mastermind
    Price
    $1.00/month
    Trial period
    No trial

    Please help me resolve this issue. Thank you.

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

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

    (@nahuelmahe)

    Hello @jbyer1988,

    Thank you for trying out Direct Stripe, I’m sorry you have had that issue.

    From the information I read about your plan, the ID is “marketing”, so that is the information that needs to be used in amount parameter of the shortcode when the type is set to subscription ( I know it can be confusing, sorry about that ).

    So the Stripe log is correct as the plan with the ID 100 doesn’t exist.
    Just change the amount parameter to amount=”marketing” and it should work.

    Best regards,

    Nico

Viewing 1 replies (of 1 total)
  • The topic ‘400 Error- Plan is correct in Stripe’ is closed to new replies.