pagarme_card_hash 0.0.2
pagarme_card_hash: ^0.0.2 copied to clipboard
A Flutter package that allows you to generate card hashes to be used with Pagar.me's payment platform.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add pagarme_card_hashThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
pagarme_card_hash: ^0.0.2Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:pagarme_card_hash/api/pagarme_api.dart';
import 'package:pagarme_card_hash/constants/pagarme_constants.dart';
import 'package:pagarme_card_hash/encryption/pagarme_encrypt.dart';
import 'package:pagarme_card_hash/exceptions/generate_hash_exception.dart';
import 'package:pagarme_card_hash/exceptions/response_exception.dart';
import 'package:pagarme_card_hash/models/pagarme_card.dart';
import 'package:pagarme_card_hash/models/pagarme_public_key.dart';
import 'package:pagarme_card_hash/pagarme_flutter_card_hash.dart';
import 'package:pagarme_card_hash/utils/http_tunnel.dart';
import 'package:pagarme_card_hash/utils/json_utils.dart';