Skip to content

checkout_session.payment_intent_data can not be retrieved when downloading the session object #3113

@dominik-weber

Description

@dominik-weber

Is your feature request related to a problem? Please describe.

We're using payment_intent_data.metadata to store metadata values that should be added to the payment intent created by the checkout session.
I'm currently trying to write automated integration tests and would like to assert that the created checkout session has the proper metadata configured, however it seems like the information from payment_intent_data is not returned when I download the checkout session (using GET /v1/checkout/sessions/id via .NET SDK).

Describe the solution you'd like

When loading the checkout session the payment_intent_data property should be included or expandable.

Describe alternatives you've considered

I've tried to complete the checkout session and check the metadata of the created payment intent, however it looks like this is not possible programmatically (even in sandbox mode) without ui-based e2e tests.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions