flutter_kushki 0.0.5

Flutter Android iOS web

This package provides a Flutter Kushki payment gateway integration for developers.

flutter_kushki #

Kushki frontend payment gateway integration for Flutter

Installing #

  1. Add dependency to pubspec.yaml

    Get the latest version in the 'Installing' tab on pub.dartlang.org

dependencies:
    flutter_kushki: ^0.0.5
  1. Import the package
import 'package:flutter_kushki/kushki.dart'; // Main class
import 'package:flutter_kushki/kushki_environment.dart'; // Environments
import 'package:flutter_kushki/kushki_card.dart'; // Card model

Usage #

Instantiate the class

    kushki = new Kushki(
      '<your_merchant_id>',
      currency: 'USD',
      environment: KushkiEnvironment.TESTING,
    );

Create the card data

    final _card = KushkiCard();
    _card.name = 'Kushki Test';
    _card.number = '4381082002222866';
    _card.cvv = '633';
    _card.expiryMonth = '07';
    _card.expiryYear = '21';

Get the card token

    try {
      final String token = await kushki.requestToken(_card, 30.52);
      print(token);
    } catch (e) {
      print(e.toString());
    }

TODO: #

  • [x] requestToken()
  • [ ] getBinInfo()
  • [ ] requestSubscriptionToken()
  • [ ] requestCardAsyncToken()
  • [ ] getBankList()
  • [ ] requestTransferSubscriptionToken()
  • [ ] requestSecureValidation()
  • [ ] requestCashToken()
  • [ ] requestCashOutToken()
  • [ ] requestTransferToken()
0
likes
100
pub points
30%
popularity

This package provides a Flutter Kushki payment gateway integration for developers.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

miguel@suarez.pro.ec

License

unknown (LICENSE)

Dependencies

flutter, http

More

Packages that depend on flutter_kushki