This is the demo swift app for apple pay, the encrypted data and ephemeralPublicKey can be found on xcode output after apple pay process successfully.
Note:
Please make sure to enable Apple Pay in Project>Capabilities and add your merchant ID from Developer Console.
The data payload is only generated with real test device, testing with simulators will return empty data.