{"section":"tutorials","requestedLocale":"en","requestedSlug":"setting-up-pagarmev2-gateway","locale":"en","slug":"setting-up-pagarmev2-gateway","path":"docs/en/tutorials/payments/payment-settings/setting-up-pagarmev2-gateway.md","branch":"main","content":"At VTEX, it is possible to process payments with the PagarMe provider through V2 and V3 integrations.\n\n> ⚠️ If you want to configure the V3 version of Pagarme in your store, go to [Setting up payments with PagarMeV3](/en/docs/tutorials/setting-up-payments-with-pagarmev3).\n\nTo configure PagarMeV2, follow the steps below:\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 __PagarMeV2__ in the search bar and click on the name of the provider.\n4. Fill in the fields with the following information:<br />\n<ul>\n<li>**App Key** e **App Token**: enter the information provided by Pagar.me.</li>\n<li>**Payment capture:**: select one of the following options:<br /><br />\n    <ul>\n    \t<li>**Use behavior recommended by the payment processor**: acapture is not automatic; it is scheduled according to the period specified by the acquirer. The acquirer indicates whether the payment has been authorized and can determine or recommend a number of days for the capture upon payment authorization. (This is the platform's default behavior.).</li>\n    \t<li>**Automatic capture immediately after payment authorization**: capture is automatically performed right after payment authorization, even if the transaction includes an anti-fraud analysis.</li>\n   \t\t<li>**Automatic capture immediately after anti-fraud analysis**: capture is automatically performed right after payment authorization and anti-fraud analysis. If you select this behavior and do not have anti-fraud analysis, the system will perform the payment capture as in the behavior *Automatic capture immediately after payment authorization*.</li>\n   \t\t<li>**Deactivated: Not automatically captured**: capture is only performed after the order has been invoiced. Please note that the payment will not be processed if invoicing is delayed and exceeds the capture period agreed with the payment provider.</li>\n    </ul>\n  </li>\n</ul>\n\n5. __Business name__: Enter the name that will identify your store on the customer's invoice.\n6. __Enable split and send recipients?__: If you want to use the Split Payment solution, select __Yes__ and fill in the requested information according to what has been negotiated with Pagar.me.<br /><br />\n<ul>\n  <li>**Responsibility for payment fees**: Choose from Marketplace, Markeplace + Sellers or Sellers.</li>\n  <li>**Responsibility for chargebacks**: Choose from Marketplace, Markeplace + Sellers or Sellers.</li>\n</ul>\n7. Click on __Save__.\n\n## Setting up the payment condition\n\nAfter completing the previous steps, __PagarMeV2__ is ready to be used in your store.\nIf you want to associate it with a payment condition that is compatible with PagarMeV2, check out our article [Configuring payment conditions](/en/tutorial/condicoes-de-pagamento)."}