-
Notifications
You must be signed in to change notification settings - Fork 848
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
AutoPagingIterator does not work with an invoice that has more than 10 line items that use tax rates #1422
Comments
I'm sorry for the confusion, the service fix didn't cover all the cases we assumed. I'll work on getting this resolved. |
@pakrym-stripe can't we just merge my PR in the meantime? |
I'm sorry @driesvints, while merging your PR will unblock this issue, the ability to change filter parameters is not a feature we'd like to support long-term on all collections. Is it possible for you to use manual pagination as a temporary workaround? |
No worries. Unfortunately not as we just need to get all line items to display on the custom invoice. |
You can get all items by manually iterating pages:
|
@pakrym-stripe thank you for that example. I've sent this in for Cashier: laravel/cashier-stripe#1503 |
Describe the bug
#1400 (comment)
To Reproduce
Expected behavior
All lines on an invoice should be expanded, but it'll fail with the following error:
Attempt to read property "display_name" on string
Code snippets
No response
OS
Ubuntu / Centos
PHP version
PHP 8.1
Library version
stripe/stripe-php v10.3.0
API version
2022-11-15
Additional context
No response
The text was updated successfully, but these errors were encountered: