Skip to content

Swift code to get raw Apple Pay payment data. This uses only PassKit and no payment processor SDKs. it serves as a base example of how to use Apple Pay directly.

Notifications You must be signed in to change notification settings

michael-quinlan/swift_basic_apple_pay

Repository files navigation

This code contains a basic view controller that interacts with PassKit to take an Apple Pay payment. It does not link up to any payment processor and therefore stops after receiving the encrypted 3DS data from Apple. It should be viewed as a Swift example of how to do a raw Apple Pay payment on the client side. For the code to decrypt the data server side see (https://github.com/beatty/applepay_crypto_demo)

One important step is that you must register a Merchant ID in the certificate section of your iOS developer portal. This exact Merchant ID string must be used in both the ViewController and the Entitlements file.

About

Swift code to get raw Apple Pay payment data. This uses only PassKit and no payment processor SDKs. it serves as a base example of how to use Apple Pay directly.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages