Skip to content

A small conekta library for tokenizing written in Dart for Flutter

License

Notifications You must be signed in to change notification settings

mondragonda/conekta-flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Conekta Flutter Tokenizer

This is a very small library that allows Flutter applications using Conekta payments service, tokenize credit cards directly in flutter apps without any strange hack or weird implementation. Feel free to tweak anything that you feel is neccesary for the implementation or to fullfill your applications specific needs.

The implementation of this library was mostly after a reverse engineering process D:.

Hey but I needed to do this because at this moment: Sunday, March 31, 2019; there is not SDK for using in Flutter.

I discarded the platform channel approach in talking to the existing native Conekta iOS and Android SDKs. I wanted to implement a smoothly payment feature in Dart code without relying on device native function calls.

Having said that these are the requirements:

Requirements:

  1. Add the tokenizer relying dependencies to your pubspec.yaml file:
  2. I created an PaymentMethod class to encapsulate all the properties of a payment method sent to the Conekta API. Feel free to provide your own implementation or pass just only a Map<String, String> to the tokenizePaymentMethod() and do the little neccesary modifications.

It would be nice if you can contribute to create a flutter external plugin with this.

About

A small conekta library for tokenizing written in Dart for Flutter

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages