-
-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webhook Parse failing with "invalid PriceId
, expected id to start with "price_" or "plan_"
#578
Comments
The
This causes the code to try to parse the
I guess there might be the need to lift the restriction of the Price ID needing to be one of References:
|
Got it! @augustoccesar thank you for the more thorough explanation/understanding than I possessed... I forked the repo earlier to fix this bug in our live service and I just opened a PR. Happy to make adjustments to get it up to merge-standard if you want to take a look! |
fix: #578 by allowing arbitrary strings for PriceIds
## [0.38.1](v0.38.0...v0.38.1) (2024-08-06) ### Bug Fixes * [#578](#578) allow arbitrary strings for priceId ([a16bc6e](a16bc6e))
🎉 This issue has been resolved in version 0.38.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Describe the bug
My
invoice.paid
webhook event parse is failing with "invalidPriceId
, expected id to start with "price_" or "plan_"The price ID is "monthly8usd" — and this is from Stripe, mind you... so I think this must be a false presumption?
To Reproduce
Webhook
Event payload (scrubbed):
Expected behavior
It should parse a valid
invoice.paid
eventCode snippets
No response
OS
debian
Rust version
1.79.0
Library version
async-stripe 0.37.1
API version
2024-06-20
Additional context
No response
The text was updated successfully, but these errors were encountered: