createCryptogram method

  1. @override
Future<String?> createCryptogram(
  1. BankCard card,
  2. String publicId,
  3. String publicKey
)
override

Implementation

@override
Future<String?> createCryptogram(BankCard card, String publicId, String publicKey) async {
  final cryptogram = await methodChannel.invokeMethod<String?>('createCryptogram', {
    ...card.toJson(),
    'publicId': publicId,
    'publicKey': publicKey,
  });

  return cryptogram;
}