Skip to content

CardField not saving card number, or cvv #499

Closed
@carman247

Description

flutter_stripe: ^2.1.0

CardField isn't updating card number or cvv. Only expiry month and expiry year get updated. The other two remain null

Probably because the only arguments it's receiving are:
{last4: null, expiryMonth: null, expiryYear: null, complete: false, brand: null}

Even with both of these set to true, number and cvc still aren't saved/returned in the card details.

dangerouslyUpdateFullCardDetails: true,
dangerouslyGetFullCardDetails: true,

And.. that's because these two parameters are missing from _MethodChannelCardField in lib/widgets/card_field.dart

dangerouslyGetFullCardDetails: widget.dangerouslyGetFullCardDetails,
dangerouslyUpdateFullCardDetails: widget.dangerouslyUpdateFullCardDetails,

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions