Last updated:
0 purchases
flutter kushki
flutter_kushki #
Kushki frontend payment gateway integration for Flutter
Installing #
Add dependency to pubspec.yaml
Get the latest version in the 'Installing' tab on pub.dartlang.org
dependencies:
flutter_kushki: ^0.0.5
copied to clipboard
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
copied to clipboard
Usage #
Instantiate the class
kushki = new Kushki(
'<your_public_merchant_id>',
currency: 'USD',
environment: KushkiEnvironment.TESTING,
);
copied to clipboard
Create the card data
final _card = KushkiCard();
_card.name = 'Kushki Test';
_card.number = '4381082002222866';
_card.cvv = '633';
_card.expiryMonth = '07';
_card.expiryYear = '21';
copied to clipboard
Get the card token
try {
final String token = await kushki.requestToken(_card, 30.52);
print(token);
} catch (e) {
print(e.toString());
}
copied to clipboard
TODO: #
✅ requestToken()
❌ getBinInfo()
❌ requestSubscriptionToken()
❌ requestCardAsyncToken()
❌ getBankList()
❌ requestTransferSubscriptionToken()
❌ requestSecureValidation()
❌ requestCashToken()
❌ requestCashOutToken()
❌ requestTransferToken()
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.