passkit 1.0.0 copy "passkit: ^1.0.0" to clipboard
passkit: ^1.0.0 copied to clipboard

Pure Dart library which can create and read Apple's PkPass files (which are usually shown in Apple Wallet). Works on servers and in apps.

example/main.dart

import 'dart:io';

import 'package:passkit/passkit.dart';

void main() async {
  final passKitBytes = await File('pass.pkpass').readAsBytes();
  final pkPass = PkPass.fromBytes(
    passKitBytes,
    skipChecksumVerification: true,
    skipSignatureVerification: true,
  );

  print(pkPass.pass.description);

  if (pkPass.isWebServiceAvailable) {
    final updatedPass = PassKitWebClient().getLatestVersion(pkPass);
    print(updatedPass);
  }
}
10
likes
160
pub points
73%
popularity
screenshot

Publisher

verified publisheruekoetter.dev

Pure Dart library which can create and read Apple's PkPass files (which are usually shown in Apple Wallet). Works on servers and in apps.

Repository (GitHub)
View/report issues

Topics

#passkit #pkpass #apple-wallet #wallet #passbook

Documentation

API reference

Funding

Consider supporting this project:

github.com

License

Apache-2.0 (license)

Dependencies

archive, collection, crypto, csslib, http, http_parser, image, intl, json_annotation, meta, pkcs7, pointycastle

More

Packages that depend on passkit