Skip to content

Instantly share code, notes, and snippets.

@billinghamj
Created June 14, 2016 13:18
Show Gist options
  • Save billinghamj/8f2599c7ce886a02419c27fafa95054b to your computer and use it in GitHub Desktop.
Save billinghamj/8f2599c7ce886a02419c27fafa95054b to your computer and use it in GitHub Desktop.
Apple Pay JS
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());
@paulirish
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment