Skip to content

payment_method_details.type: unknown variant paypal, expected card #783

@willezgo

Description

@willezgo

Describe the bug

After trying to fetch a Dispute for a Paypal payment, I get the following deserialization error:

payment_method_details.type: unknown variant `paypal`, expected `card` at line 218 column 20

The error can be fixed by adding the Paypal variant to DisputePaymentMethodDetailsType

To Reproduce

  1. Create a payment paid through Paypal
  2. Initiate a dispute
  3. Try to fetch the Dispute with stripe::Dispute::retrieve

Expected behavior

The Dispute object is received and deserialized successfully.

Code snippets

OS

Ubuntu 25.10

Rust version

rustc 1.91.0

Library version

0.41

API version

2022-11-15

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions