Demo to create Authorised Token. So you can share that token to your/3rd party payment platform to get transaction done.
At Demo you have: Items with prices and respective discount. You can check those in items.json file.
Apple Pay itegration at CheckOutViewController.m
Please read the comments to get more details about each line of code.
Documentation: https://developer.apple.com/library/ios/ApplePay_Guide/
Before starting with XCode. You must Configuring Your Environment if you are willing to test this on device. For simulator you continue with this code.
To Configuring Your Environment: https://developer.apple.com/library/ios/ApplePay_Guide/Configuration.html#//apple_ref/doc/uid/TP40014764-CH2-SW1
Follow the links for Apple Pay Identity Guidelines for iOS Developers: https://developer.apple.com/apple-pay/Apple-Pay-Identity-Guidelines.pdf https://developer.apple.com/ios/human-interface-guidelines/technologies/apple-pay/#//apple_ref/doc/uid/TP40006556-CH69