Skip to content

Customer.list_payment_methods with auto_paging_iter does not respect initial parameters #755

@AndreasHogstrom

Description

@AndreasHogstrom

Similarly to this old issue; #221 , the Customer.list_payment_methods used in conjunction with auto_paging_iter does not persist any parameters when going to the next page.

Python version: 3.9.7
Stripe SDK version: 2.63.0

Example:
Both the type parameter and the customer ID is lost:

# Generated URL: /v1/customers/cus_123/payment_methods?type=card
payment_methods = stripe.Customer.list_payment_methods("cus_123", type="card")

# Next page generated URL: /v1/customers/:customer/payment_methods?starting_after=pm_123
for payment_method in payment_methods.auto_paging_iter():
    pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions