Coder Social home page Coder Social logo

passkitexample's Introduction

(logo) PassKitExample

Pages

NFC读取、写入、虚拟卡片写入钱包实例;

Screenshot:

APP Write Card Add Pass

Document:

钱包写入NFC卡片

<!-- entitlements文件添加权限 -->
<!-- 有资质的话可申请 [email protected] -->
<key>com.apple.developer.payment-pass-provisioning</key>
<true/>

虚拟卡片写入

// 1、修改.pkpass为.zip 修改pass.json

// 2、manifest.json文件校验
openssl sha1 <file>

// 3、生成signature文件
walletCard.p12 123456
openssl pkcs12 -in walletCard.p12 -clcerts -nokeys -out walletCard.pem -passin pass:123456
openssl pkcs12 -in walletCard.p12 -nocerts -out walletCardKey.pem -passin pass:123456 -passout pass:123456

openssl smime -binary -sign -certfile AWDRCA.pem -signer walletCard.pem -inkey walletCardKey.pem -in manifest.json -out signature -outform DER

// 4、打包walletCard.pkpass
zip -r walletCard.pkpass manifest.json pass.json signature logo.png icon.png strip.png

Reference:

https://developer.apple.com/documentation/passkit/pkaddpaymentpassrequest?language=objc https://blog.csdn.net/sz_vcp2007/article/details/60762349

Contact Me :octocat:

passkitexample's People

Contributors

niyongsheng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ben-haim

passkitexample's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.