{
    "componentChunkName": "component---node-modules-rocketseat-gatsby-theme-docs-core-src-templates-docs-query-js",
    "path": "/docs/setup/apple/v2-apple-connection/",
    "result": {"data":{"mdx":{"id":"073edfd1-7c45-59e7-a92b-314612451945","excerpt":"Everything you need to know how to connect Apple v2 to LinkFive Enable App Store Server to Server notifications LinkFive has full integration of Apple Server to…","fields":{"slug":"/docs/setup/apple/v2-apple-connection/"},"frontmatter":{"title":"Apple App Store API v2 connection","description":"We're using the official Apple App Store API. The required credentials are the In-App Purchase Key, the Key Id and the Issuer Id. Find out where to find those keys.","image":null,"disableTableOfContents":true},"body":"var _excluded = [\"components\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n/* @jsxRuntime classic */\n/* @jsx mdx */\n\nvar _frontmatter = {\n  \"title\": \"Apple App Store API v2 connection\",\n  \"description\": \"We're using the official Apple App Store API. The required credentials are the In-App Purchase Key, the Key Id and the Issuer Id. Find out where to find those keys.\",\n  \"disableTableOfContents\": true\n};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n    props = _objectWithoutProperties(_ref, _excluded);\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"blockquote\", null, mdx(\"p\", {\n    parentName: \"blockquote\"\n  }, \"Everything you need to know how to connect Apple v2 to LinkFive\")), mdx(\"h2\", {\n    \"id\": \"enable-app-store-server-to-server-notifications\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#enable-app-store-server-to-server-notifications\",\n    \"aria-label\": \"enable app store server to server notifications permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Enable App Store Server to Server notifications\"), mdx(\"p\", null, \"LinkFive has full integration of Apple Server to Server notifications. Whenever a user changes their subscription status, Apple notifies our API to ensure that your users have a valid subscription.\"), mdx(\"p\", null, mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Please use the following URL for all Apple Notifications:\")), mdx(\"pre\", null, mdx(\"code\", null, \"https://api.linkfive.io/v2/apple/notifications\")), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"\\xA0\", \"1. Go to the \", mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"https://appstoreconnect.apple.com/apps/\"\n  }, \"App Store Connect App Overview\"), \" and open your App.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"\\xA0\", \"2. Select the side-menu-tab: \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"App Informations\"), \" and scroll down to \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"App Store Server Notifications\"), \".\")), mdx(DocImg, {\n    img: addS2SNotification1,\n    title: \"Appstore Server to Server notification Step 1 - LinkFive\",\n    mdxType: \"DocImg\"\n  }), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"\\xA0\", \"3. Click on \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Set Up Url\")), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"\\xA0\", \"4. Type in: \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"https://api.linkfive.io/v2/apple/notifications\"), \" and select \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Version 2 Notifications\"))), mdx(DocImg, {\n    img: addS2SNotification2,\n    title: \"Appstore Server to Server notification Step 2 - LinkFive\",\n    mdxType: \"DocImg\"\n  }), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"\\xA0\", \"5. Also set up \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Sandbox Notifications\"), \" in the same way.\")), mdx(DocImg, {\n    img: addS2SNotification3,\n    title: \"Appstore Server to Server notification Step 3 - LinkFive\",\n    mdxType: \"DocImg\"\n  }), mdx(\"h2\", {\n    \"id\": \"linkfive-key-overview\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#linkfive-key-overview\",\n    \"aria-label\": \"linkfive key overview permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"LinkFive Key Overview\"), mdx(\"p\", null, \"We need 3 different components to validate that your users own a valid subscription:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"\\xA0\", \"1. The In-App Purchase Key\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"\\xA0\", \"2. The created Key ID\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"\\xA0\", \"3. The Issuer ID\")), mdx(\"p\", null, \"We use the in-app purchase key to verify that a purchase has been made through your app and to collect other information about when the subscription ends and whether it has been cancelled.\"), mdx(\"h3\", {\n    \"id\": \"generate-the-in-app-purchase-key\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#generate-the-in-app-purchase-key\",\n    \"aria-label\": \"generate the in app purchase key permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Generate the In-App Purchase Key\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"\\xA0\", \"1. Go to the \", mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"https://appstoreconnect.apple.com/access/api/\"\n  }, \"App Store Connect\"), \" and open the \\u201CUsers ans Access\\u201C-tab.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"\\xA0\", \"2. Go to \\u201CKeys\\u201C\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"\\xA0\", \"3. Click on In-App Purchase and click on the (+) Add-icon\")), mdx(DocImg, {\n    img: createAppStoreKey1,\n    title: \"Step 1 to create app store subscription key for LinkFive\",\n    mdxType: \"DocImg\"\n  }), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"\\xA0\", \"4. Give it a custom name like LinkFive Api Key.\")), mdx(DocImg, {\n    img: createAppStoreKey2,\n    title: \"Step 2 to create app store subscription key for LinkFive\",\n    mdxType: \"DocImg\"\n  }), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"\\xA0\", \"5. Download the Key file\")), mdx(DocImg, {\n    img: createAppStoreKey3,\n    title: \"Step 2 to create app store subscription key for LinkFive\",\n    mdxType: \"DocImg\"\n  }), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"\\xA0\", \"6. Upload to LinkFive\")), mdx(\"h3\", {\n    \"id\": \"find-the-key-id\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#find-the-key-id\",\n    \"aria-label\": \"find the key id permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Find the Key ID\"), mdx(\"p\", null, \"The Key ID is next to the created Key\"), mdx(\"h3\", {\n    \"id\": \"the-issuer-id\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#the-issuer-id\",\n    \"aria-label\": \"the issuer id permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"The Issuer ID\"), mdx(\"p\", null, \"The Issuer ID is the same for each key you've created. The KeyId is currently on the App Store Connect API tab.\"), mdx(DocImg, {\n    img: findIssuerId,\n    title: \"Step 2 to create app store subscription key for LinkFive\",\n    mdxType: \"DocImg\"\n  }), mdx(\"p\", null, \"Thats all we need.\"), mdx(\"h3\", {\n    \"id\": \"app-store-connect-api-key\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#app-store-connect-api-key\",\n    \"aria-label\": \"app store connect api key permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"App Store Connect API Key\"), mdx(\"blockquote\", null, mdx(\"p\", {\n    parentName: \"blockquote\"\n  }, \"You can also create a new App Store Connect Api Key.\")), mdx(\"p\", null, \"The App Store Connect Api Key is also a valid Key you can upload to LinkFive.\"));\n}\n;\nMDXContent.isMDXComponent = true;","headings":[{"depth":2,"value":"Enable App Store Server to Server notifications"},{"depth":2,"value":"LinkFive Key Overview"},{"depth":3,"value":"Generate the In-App Purchase Key"},{"depth":3,"value":"Find the Key ID"},{"depth":3,"value":"The Issuer ID"},{"depth":3,"value":"App Store Connect API Key"}]}},"pageContext":{"slug":"/docs/setup/apple/v2-apple-connection/","next":{"label":"Introduction","link":"/docs/docs/"},"repositoryEditUrl":"","repositoryProvider":""}},
    "staticQueryHashes": ["1954253342","2328931024","2501019404","973074209"]}