Go to file
2023-11-17 16:17:28 -07:00
example Added sad path test, implemented custom styling, added CVC error handling and Stripe request for card token retreival 2023-11-17 16:17:28 -07:00
lib Added sad path test, implemented custom styling, added CVC error handling and Stripe request for card token retreival 2023-11-17 16:17:28 -07:00
test Added sad path test, implemented custom styling, added CVC error handling and Stripe request for card token retreival 2023-11-17 16:17:28 -07:00
.gitignore Added sad path test, implemented custom styling, added CVC error handling and Stripe request for card token retreival 2023-11-17 16:17:28 -07:00
.metadata First commit, initialized library template 2023-11-08 15:42:09 -07:00
analysis_options.yaml First commit, initialized library template 2023-11-08 15:42:09 -07:00
CHANGELOG.md Changelog updated 2023-11-14 17:37:03 -07:00
LICENSE Added dartdoc comments for PUB POINTS!! 2023-11-14 17:32:28 -07:00
pubspec.yaml Added sad path test, implemented custom styling, added CVC error handling and Stripe request for card token retreival 2023-11-17 16:17:28 -07:00
README.md Update readme and bump version 2023-11-14 17:35:48 -07:00
slides.md Add test, fixed auto focusing and error handling of invalid dates 2023-11-14 15:09:03 -07:00

A simple and clean Stripe Element Card clone, rebuilt in native Flutter widgets.

This is not an officially maintained package by Stripe, but using the html stripe elements they provide with flutter is less than ideal.

Features

  • Card number validation
  • No more depending on Flutter Webview

Getting started

  • Install the package by running flutter pub add stripe_native_card_field

Usage

Include the package in a file:

import 'package:stripe_native_card_field/stripe_native_card_field.dart';
CardTextField(
  width: 500,
  onCardDetailsComplete: (details) {
    // Save the card details to use with your call to Stripe, or whoever
    setState(() => _cardDetails = details);
  },
);

Additional information

Repository located here