Skip to content

kiwi-bop/openpay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openpay

Openpay dart package.

Only token creation have been implemented here for now. Supported countries are Mexico and Colombia.

Usage

import 'package:openpay/openpay.dart';

main(List<String> arguments) async {
  final openpay = Openpay('MERCHANT_ID', 'API_KEY', country: Country.Mexico, isSandboxMode: true);
  final token = await openpay.createToken(
                      CardInfo(
                        '4111111111111111', // card number
                        'Juan Perez Ramirez', // holder name
                        '21', //year
                        '12', //month
                        '110', // cvv
                      ),
                    );
  print(token);
}

Getting Started with Flutter

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

About

Openpay dart package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages