Created
June 14, 2016 13:18
-
-
Save billinghamj/8f2599c7ce886a02419c27fafa95054b to your computer and use it in GitHub Desktop.
Apple Pay JS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const aps = new ApplePaySession(1, { | |
countryCode: 'GB', | |
currencyCode: 'GBP', | |
supportedNetworks: ['visa', 'masterCard', 'amex'], | |
merchantCapabilities: ['supports3DS', 'supportsEMV'], | |
total: { label: 'Test 2', amount: '10.00' }, | |
}); | |
someButton.on('click', () => aps.begin()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good resources (for the people ending up here from Google)....
https://developer.apple.com/reference/applepayjs/applepaysession
http://stackoverflow.com/a/38136643/89484