Stripe Error on Registering for Recurring Subscription

I’m hoping someone can help me with this Stripe error. Thank you!

Using the follow shortcode I have created a registration form for a recurring subscription with payment through Strip. The $1 price and 1-day recurring subscription is due to this being in test mode.

[s2Member-Pro-Stripe-Form level=“5” ccaps="" desc=" " cc=“USD” custom=“bankinsights.dreamhosters.com” ta=“0” tp=“0” tt=“D” ra=“1.00” rp=“1” rt=“D” rr=“1” coupon="" accept_coupons=“0” default_country_code=“US” captcha=“0” /]

Here is the Stripe log:

200 OK POST /v1/payment_methods 6:15:32 PM
200 OK POST /v1/customers/cus_NZlIFWWi5RZVJu 6:15:34 PM
200 OK POST /v1/payment_methods/pm_1MoboWCylVvE4X8BMu2xL80Q/attach 6:15:34 PM
200 OK POST /v1/customers/cus_NZlIFWWi5RZVJu 6:15:35 PM
400 ERR POST /v1/products 6:15:35 PM
400 ERR POST /v1/plans 6:15:35 PM

Here are the Stripe errors:

400 ERR POST /v1/products 6:15:35 PM

Request POST body
{
“type”: “service”,
“id”: “s2_prod_7215ee9c7d9dc229d2921a40e899ec5f”,
“name”: " "
}

Response body
{
“error”: {
“code”: “parameter_invalid_empty”,
“doc_url”: “https://stripe.com/docs/error-codes/parameter-invalid-empty”,
“message”: “You passed an empty string for ‘name’. We assume empty values are an attempt to unset a parameter; however ‘name’ cannot be unset. You should remove ‘name’ from your request or supply a non-empty value.”,
“param”: “name”,
“request_log_url”: “https://dashboard.stripe.com/logs/req_ulkaKWkaKprRuO?t=1679530535”,
“type”: “invalid_request_error”
}
}

parameter_invalid_empty - name
You passed an empty string for ‘name’. We assume empty values are an attempt to unset a parameter; however ‘name’ cannot be unset. You should remove ‘name’ from your request or supply a non-empty value.
{
“type”: “service”,
“id”: “s2_prod_7215ee9c7d9dc229d2921a40e899ec5f”,
“name”: " "
}

400 ERR POST /v1/plans 6:15:35 PM

Request POST body
{
“interval”: “day”,
“metadata”: {
“recurring”: “true”,
“recurring_times”: “-1”
},
“interval_count”: “1”,
“id”: “s2_plan_70e378b7bf4b7a6f605042fde6b5f3e9”,
“amount”: “100”,
“currency”: “USD”
}

Response body
{
“error”: {
“code”: “parameter_missing”,
“doc_url”: “https://stripe.com/docs/error-codes/parameter-missing”,
“message”: “Missing required param: product.”,
“param”: “product”,
“request_log_url”: “https://dashboard.stripe.com/logs/req_29pxFyDxAMRrXe?t=1679530535”,
“type”: “invalid_request_error”
}
}

parameter_missing - product
Missing required param: product.
{
“interval”: “day”,
“metadata”: {
“recurring”: “true”,
“recurring_times”: “-1”
},
“interval_count”: “1”,
“id”: “s2_plan_70e378b7bf4b7a6f605042fde6b5f3e9”,
“amount”: “100”,
“currency”: “USD”,
“product”:
}

Solved:

Although a blank description (desc=" ") in the s2Member-Pro-Stripe-Form short code is allowed for a non-recurring subscription (rr=“0”), a non-blank description (desc=“Membership at $10/month”) is required for a recurring subscription (rr=“1”).

Why was I trying to use a blank description? Because although the pro-form does a great job matching the font/style of my website, for some reason the description text (from the short code) does not. It is displayed using a unique font that isn’t used elsewhere on the website. So, I entered a description of what is being purchased on the web page immediately above the pro-form and passed a blank description to the pro-form. I’ll be looking for a way to customize the font used by the pro-form to display the description text.

Jim

1 Like

Thanks for the update with your solution, Jim.

Did you find how to customize the font for the description? It’d just be a bit of CSS to style it. If you look at the HTML for the description, you’ll find an id/class you can use as selector in your styles.

:slight_smile: