-
Notifications
You must be signed in to change notification settings - Fork 48
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
yii\base\ErrorException: Undefined array key "billing" #294
Comments
Hi @Saboteur777 Thank you for bringing this to our attention, we have created a fix for the issue and published the following versions of the Stripe plugin:
Thanks! |
Thank you, Nathaniel! It's awesome that you backported it to older versions. 👏 Just out of curiosity: why did you go with
instead of using the null coalescing operator? |
No problem @Saboteur777 As for the code, just for a little bit more verbosity and creates a bit of self-documenting code. Yes, null coalescing is shorter/tidier but it doesn't really tell the story as to why, as it captures both if the value is In the future, it will be more obvious if there is a possibility to remove this code if Stripe is no longer passing the key for example. Could have certainly gone with either method. Thanks! |
Thanks for the explanation – it is always interesting to understand how other developers decides which solution to use and why. |
Description
When a Stripe webhook is sent, I get this error message.
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: