-
Notifications
You must be signed in to change notification settings - Fork 93
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
Iterating over TransactionList returns null instead of object when retrieved from Invoice #30
Comments
Great to hear! Thanks. |
@bhelx This issue was just re-introduced. I can confirm that it worked just fine till yesterday around:
|
Wow, a bug lurking in hiding for 10+ years! I'm no longer at Recurly. I think the best person to notify would be @douglasmiller . |
Thank you for letting us know about this, @crystinutzaa. Could you share what version of the php client you are using? I have an idea what might be causing this to re-appear, but would like to confirm. |
Hey @douglasmiller |
@crystinutzaa, I cannot reproduce the issue with the given code using the latest version of the 2.12.x client. However, I've seen similar issues in the dotnet client. This has something to do with a change to how we render empty elements so I will get that change reverted until we can discover what the root cause of this client issue is. I'll keep you posted |
@crystinutzaa, we have reverted the change in the API and this should be fixed for you. Could you please confirm? |
@douglasmiller confirmed! 🎉 |
When you retrieve an Invoice with Recurly_Invoice::get(), the resulting object has a TransactionList named "transactions". Despite the TransactionList clearly having Transaction objects, if you attempt to iterate over that list, null is returned for each transaction rather than the transaction object itself.
Code to recreate the issue (use your own invoice id):
The commit that directly causes this bug is 6895c7f
The text was updated successfully, but these errors were encountered: