Skip to content

kaoz70/flutter_kushki

Repository files navigation

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_public_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:

  • requestToken()
  • getBinInfo()
  • requestSubscriptionToken()
  • requestCardAsyncToken()
  • getBankList()
  • requestTransferSubscriptionToken()
  • requestSecureValidation()
  • requestCashToken()
  • requestCashOutToken()
  • requestTransferToken()

About

Flutter plugin for Kushki payment gateway

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published