Skip to content

Inconsistent casing in expand field #4

@simontreanor

Description

@simontreanor

Stripe has an optional "expand" field that takes a list of strings representing fields to expand, e.g. ["latest_charge"] on a payment intent retrieve request will expand the field from a simple payment-intent ID string to a full-blown payment intent object.

However, sometimes the "expand" field is a query-string parameter and sometimes it is a form parameter. In the former case it needs to be formatted as expand = ["latest_charge"] but in the latter case as expand = ["latestCharge"]. This is inconsistent behaviour and needs addressing but might break existing implementations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions