Skip to content

Error: type 'String' is not a subtype of type 'Map<String, dynamic>' in type cast #2302

Description

@emisanpre

Describe the bug
Type mismatch on _$StripeErrorGenericFromJson when cancelling Stripe.instance.presentCustomerSheet():

Error: type 'String' is not a subtype of type 'Map<String, dynamic>' in type cast

Image Image

To Reproduce
Steps to reproduce the behavior:

  1. Open customer sheet using Stripe.instance.presentCustomerSheet().
  2. Close the customer sheet.

Expected behavior
Exception should not happen

Smartphone / tablet

  • Device: Simulator iPhone 17
  • OS: iOS 26
  • Package version: 12.1.1
  • Flutter version 3.10.7

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions