microsoft / azure-api-management-monetization

MIT License
54 stars 31 forks source link

stripe: parameter_unknown - "recurring Received unknown parameter: "recurring. Did you mean recurring? #57

Closed frouhi closed 10 months ago

frouhi commented 1 year ago

I followed the stripe-deploy.md step by step, but I see the above error in the product page in stripe. Seems like an obvious typo somewhere. I'm wondering if anyone else has come across this bug and if there is a known fix for it?

some more details: this seems to be the post body for this endpoint (POST /v1/prices)

{
  ""recurring": {
    "interval": {
      """: "month"
    },
    "usage_type": {
      """: "licensed"
    },
    "interval_count": {
      """: "1"
    }
  },
  "product": ["basic"](https://dashboard.stripe.com/test/products/basic),
  "currency": "usd",
  "unit_amount_decimal": "1495"
}

Thanks

frouhi commented 1 year ago

actually, a similar issue is happening in other api calls to stripe as well!

Screenshot 2023-09-09 at 2 06 18 PM
frouhi commented 1 year ago

Another issue I'm having is that when I create a product through the dashboard, it doesn't get added to the stripe products. (and I don't know how to do it manually because I can't add the product ID manually from the stripe dashboard when trying to create it there).

also, when I try to subscribe to one from the developer portal, (after adding the pricing manually in stripe), the stripe logs show that the payment was completed, but the product doesn't show up in the user profile.

rishabhdugar commented 1 year ago

{ "error": { "code": "parameter_unknown", "doc_url": "https://stripe.com/docs/error-codes/parameter-unknown", "message": "Received unknown parameter: \"enabled_events. Did you mean enabled_events?", "param": "\"enabled_events", "request_log_url": "https://dashboard.stripe.com/test/logs/req_NKJEJym6t5A7vF?t=1696351662", "type": "invalid_request_error" } }

rishabhdugar commented 1 year ago

more similar error response from stripe dashboard { "error": { "code": "parameter_unknown", "doc_url": "https://stripe.com/docs/error-codes/parameter-unknown", "message": "Received unknown parameters: \"tiers, \"recurring. Did you mean tiers or recurring?", "param": "\"tiers", "request_log_url": "https://dashboard.stripe.com/test/logs/req_kwKuJ6a9as4YrQ?t=1696351661", "type": "invalid_request_error" } }

asparagusbeef commented 11 months ago

Did you ever resolve your issues? I am facing the same thing.