{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-docs/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Enable Apple Pay and Google Pay","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"enable-apple-pay-and-google-pay","__idx":0},"children":["Enable Apple Pay and Google Pay"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"apple-pay","__idx":1},"children":["Apple Pay"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The following is required to enable the use of Apple Pay in your app:"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"create-an-apple-merchant-id","__idx":2},"children":["Create an Apple Merchant Id"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can follow the steps outlined ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developer.apple.com/help/account/configure-app-capabilities/configure-apple-pay#create-a-merchant-identifier"},"children":["here"]}," to create your Apple Merchant Id."," ","Provide Tyro with your newly created Apple Merchant Id."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"create-a-payment-processing-certificate","__idx":3},"children":["Create a Payment Processing certificate"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In order to create a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Payment Processing Certificate"]}," you will need to first create a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Certificate Signing Request"]}," (CSR) file."," ","Create the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["key"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CSR"]}," file by doing the following."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"terminal","header":{"controls":{"copy":{}}},"source":"Generate a set of ECC Keys: openssl ecparam -out applepay.key -name prime256v1 -genkey\nGenerate a CSR: openssl req -new -sha256 -key applepay.key -nodes -out applepay.csr -subj '/O=Company/C=US'\n","lang":"terminal"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can set the -subj to what you require."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Then create the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Payment Processing Certificate"]}," using your ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CSR"]}," file."," ","You will then need to download the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["certificate file"]}," (file with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".cer"]}," extension)"," ","and provide this to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Tyro"]}," along with the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["key"]}," you created when making your ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CSR"]}," file."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can follow this guide to create a ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developer.apple.com/help/account/configure-app-capabilities/configure-apple-pay#create-a-payment-processing-certificate"},"children":["payment processing certificate"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"enable-apple-pay","__idx":4},"children":["Enable Apple Pay"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You will need to enable Apple Pay in ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developer.apple.com/documentation/passkit/apple_pay/setting_up_apple_pay#3735190"},"children":["Xcode"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"pod-setup","__idx":5},"children":["Pod Setup"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Add the following lines to the Podfile in your iOS folder"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"ruby","header":{"controls":{"copy":{}}},"source":"source 'https://github.com/tyro/connect-cocoapods.git'\nsource 'https://cdn.cocoapods.org/'\n","lang":"ruby"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Then install these dependencies"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"terminal","header":{"controls":{"copy":{}}},"source":"// navigate to your ios directory to install dependencies\npod install\n","lang":"terminal"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"google-pay","__idx":6},"children":["Google Pay"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The following is required to enable the use of Google Pay in your app:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"java","header":{"controls":{"copy":{}}},"source":"// Add to the <application> element of your projects AndroidManifest.xml\n<meta-data\n  android:name=\"com.google.android.gms.wallet.api.enabled\"\n  android:value:\"true\"\n/>\n","lang":"java"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Also add this to your android projects app level gradle file to add the required dependency."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"java","header":{"controls":{"copy":{}}},"source":"allprojects {\n  repositories {\n      maven {\n          url = uri(\"https://maven.pkg.github.com/tyro/tyro-pay-api-google-pay-sdk-android\")\n          credentials {\n              username = System.getenv(\"GITHUB_PACKAGES_USER\")\n              password = System.getenv(\"GITHUB_PACKAGES_TOKEN\")\n          }\n      }\n  }\n}\n","lang":"java"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Add this to your android/settings.gradle file"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"java","header":{"controls":{"copy":{}}},"source":"include ':tyro_tyro-pay-api-react-native'\nproject(':tyro_tyro-pay-api-react-native').projectDir = file('../node_modules/@tyro/tyro-pay-api-react-native/android/lib')\n","lang":"java"},"children":[]}]},"headings":[{"value":"Enable Apple Pay and Google Pay","id":"enable-apple-pay-and-google-pay","depth":1},{"value":"Apple Pay","id":"apple-pay","depth":2},{"value":"Create an Apple Merchant Id","id":"create-an-apple-merchant-id","depth":3},{"value":"Create a Payment Processing certificate","id":"create-a-payment-processing-certificate","depth":3},{"value":"Enable Apple Pay","id":"enable-apple-pay","depth":3},{"value":"Pod Setup","id":"pod-setup","depth":3},{"value":"Google Pay","id":"google-pay","depth":2}],"frontmatter":{"title":"Enable Apple Pay and Google Pay","seo":{"title":"Enable Apple Pay and Google Pay"}},"lastModified":"2026-09-01T06:34:43.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/online-payments/pay-online/integration-guide/react-native/wallets","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}