{"section":"tutorials","requestedLocale":"en","requestedSlug":"configuring-stripe-gateway-affiliation","locale":"en","slug":"configuring-stripe-gateway-affiliation","path":"docs/en/tutorials/payments/payment-settings/configuring-stripe-gateway-affiliation.md","branch":"main","content":"[Stripe](https://stripe.com) is a payment platform that offers an integrated system for receiving payments, transfers, donations, and any typical financial transaction in ecommerce and other websites.\n\n> ⚠️ You can integrate your store with Stripe via **Application Key** and **Application Token**. To obtain this data, you have to [create your account on the platform](https://dashboard.stripe.com/register) and then access [Stripe’s documentation](https://stripe.com/docs/keys) to get your **Public key** and **Secret key**. They are required for the setup in the VTEX environment.\n\nStripe supports payments in over 40 countries. The list of available countries can be accessed on the [Stripe website](https://stripe.com/enterprise).\n\nTo process your payments with Stripe, you must:\n\n1. [Configure the Stripe connector](#configuring-the-stripe-connector)\n2. [Configure a payment condition](#configuring-a-payment-condition)\n\n## Configuring the Stripe connector\n\nAfter installing the Stripe connector, follow the steps below to configure it on the VTEX platform.\n\n1. In the VTEX Admin, go to __Store Settings > Payment > Providers__, or type __Providers__ in the search bar at the top of the page.\n2. On the providers screen, click the `New Provider` button.\n3. Type the name __StripeConnector__ in the search bar and click on the name of the provider.\n4. Fill in the fields below with the following information:\n<br />\n<ul>\n<br />\n    \t<li>**App key**: Publishable key available in your [Stripe dashboard](https://dashboard.stripe.com).</li>\n    \t<li>**App token**: Secret Key available in your [Stripe dashboard](https://dashboard.stripe.com).</li>\n</ul>\n5. Click on __Save__.\n\nAfter configuration in the VTEX environment, you also need to configure Webhook in your Stripe account.\n\n1. Go to your [Stripe account dashboard](https://dashboard.stripe.com/).\n2. Click on the __Developers__ button.\n3. Click on the __Webhooks__ tab.\n4. Click on __Add an endpoint__.\n5. In the __Endpoint URL__ field, add your VTEX store’s endpoint URL in the format `https://{account-name}.myvtex.com/_v/notifications` replacing `{account-name}` with your VTEX account name.\n6. Click on __+ Select events__.\n7. Click on the categories and select the desired events. If you are not sure which events to add, please contact Stripe support and they can help you with this type of configuration.\n8. Click on __Add events__.\n9. Click on __Add endpoint__.\n\n> ℹ️ If you wish to carry out credit card transactions on Stripe, you must open a ticket on Stripe as follows: - Request the release of the \"raw card data\" function, indicating that VTEX and Stripe are payment partners. - Please attach the VTEX AOC (Attestation of Compliance for Onsite Assessments – Service Providers). To check the latest version of AOC VTEX, access the [VTEX certifications](https://vtex.com/us-en/compliance/certifications) page and download the file available in the PCI section. The above actions will prevent errors related to the transmission of sensitive data from occurring in the integration between Stripe and VTEX.\n\n## Configuring a payment condition\n\nOnce you have completed the steps above, Stripe will be ready to be used in your store. It will be available in the __Process with affiliation__ field — provided that the payment method is compatible with Stripe — when creating a payment condition. \n\nLearn more in the article [Configuring payment conditions](/en/docs/tutorials/how-to-configure-payment-conditions).\n\n## Configuring Google Pay\n\nThe Stripe connector allows you to add Google Pay as a payment method in your store's checkout. Once the Stripe connector is configured, you can add Google Pay by following the steps below.\n\n1. In the VTEX Admin, go to __Store Settings > Payment > Settings__, or type __Settings__ in the search bar at the top of the page.\n2. In the __Payment conditions__ tab, click on `+`.\n3. Click on the __Google Pay__ option.\n4. Activate the condition in the __Status__ field.\n5. In __Process with affiliation__, select the __StripeConnector__ option.\n6. Click on __Save__.\n\nAfter this configuration, Google Pay will be displayed as one of the available payment methods in your store’s checkout.\n\n## Configuring Apple Pay\n\nThe Stripe connector allows you to add Apple Pay as a payment method in your store's checkout. \n\n> ⚠️ Apple Pay currently only works on MacOs and IOS operating systems, and with  Safari browser. For more information, visit [Devices compatible with Apple Pay](https://support.apple.com/en-us/HT208531).\n\nOnce the Stripe connector is configured, you can add Apple Pay by following the steps below.\n\n1. Go to [your Stripe account dashboard](https://dashboard.stripe.com/settings/payments) in the payments setup section.\n2. In __Settings__, click on __Payment Methods__.\n3. Click on __Apple Pay > Configure__ and then __Add to new domain__.\n4. Enter the public domain of your store's website.\n5. Click on __Donwload verification file__ to save it to your device.\n6. Create the credentials [appkey and apptoken](/en/docs/tutorials/api-keys).\n7. Make a call to the endpoint to send the previously downloaded verification file, adding the created credentials and your public domain address in the header (https://\\{\\{dominioPublicodoSite\\}\\}/well-known/raw/apple-developer-merchantid-domain-association).\n8. Click on __Add__.\n9. Access the __Admin VTEX__.\n10. Click on __Payments__.\n11. Then, click on __Settings__.\n12. In the __Payment conditions__, click on the `+` button.\n13. Click on __Apple Pay__.\n14. Fill the __Rule Name__ field with a name of your choice for identification.\n15. Activate the condition in the __Status__ field.\n16. In the __Process with affiliation__ field, select the Stripe option.\n17. If you have an anti-fraud set up in your store, you can enable it for that payment condition by checking the __Use anti-fraud solution__ box.\n18. Choose whether payments will be with or without installments.\n19. It you want, you can also [configure special payment conditions](/en/tutorial/condicoes-especiais).\n20. Click on __Save__.\n\nAfter this configuration, Apple Pay will be displayed as one of the available payment methods in your store’s checkout."}