Skip to content

Instantly share code, notes, and snippets.

@thannaske
Created September 18, 2018 09:19
Show Gist options
  • Save thannaske/15f34ebff104266be04e0072b7796040 to your computer and use it in GitHub Desktop.
Save thannaske/15f34ebff104266be04e0072b7796040 to your computer and use it in GitHub Desktop.
Check whether ApplePay ist available in Germany or not
import urllib.request
import json
r = urllib.request.urlopen("https://smp-device-content.apple.com/static/region/v2/config.json").read()
content = json.loads(r.decode('utf-8'))
if "DE" in content['SupportedRegions'].keys():
print("ApplePay is available in DE.")
else:
print("ApplePay is not available in DE, yet.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment