{"section":"faq","requestedLocale":"en","requestedSlug":"fix-redirect-error-in-pagseguro","locale":"en","slug":"fix-redirect-error-in-pagseguro","path":"docs/en/faq/financial/fix-redirect-error-in-pagseguro.md","branch":"main","content":"> ❗ This payment integration can no longer be configured on the platform due to the [legacy provider removal process](/en/announcements/2023-10-13-legacy-payment-connectors-will-be-discontinued-in-2024) and the article will soon be removed from the Help Center. Check with your provider for more information about developing the new payment integration and the steps required for migrating settings in your store.\n\nIf you are having \"redirect problems\" using PagSeguro, it's likely that PagSeguro's *redirect* is configured incorrectly.\n\nTo fix the problem, there are two options: Set the PagSeguro *with redirect* in the correct way or configure the PagSeguro *without redirect*.\n\n## Setting up PagSeguro *with redirect*\n\n### Configuring Gateway Affiliation PagSeguro\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 __PagSeguro__ in the search bar and click on the name of the provider.\n4. Fill in the __email__ and __token__ fields with the information provided by PagSeguro.\n5. Follow the __Configuração do redirecionamento__ guidance outlined in the configuration panel.\n6. Click `Save`.\n\n### Setting up PagSeguro Payment Condition\n\n1. After successfully setting up the Gateway Affiliation in the previous step, click on the __Payment Conditions__ tab.\n2. Click the __+__ button in the upper right corner of the screen.\n3. Click on the __PagSeguro__ condition.\n4. In the __Status__ flag, select the __Active__ option.\n5. In __Process with affiliation__, select the __PagSeguro__ affiliation registered in the previous step.\n6. Complete the other desired fields for the [payment condition setting](/en/docs/tutorials/how-to-configure-payment-conditions).\n7. Click __Save__.\n\n## Setting up PagSeguro *without redirect*\n\n### Configuring PagSeguro Gateway Affiliation without redirect\n\n1. Access the __Payments__ section.\n2. Click the __Settings__ button.\n3. Click on the __Gateway Affiliations__ tab.\n4. Click the __+__ button in the upper right corner of the screen.\n5. Click on the __PagSecure without redirect__ affiliation.\n6. Follow our [PagSeguro configuration tutorial without redirect](/en/tutorial/how-configure-the-pagseguro-without-redirect-transparent)\n\n### Setting the Payment Condition\n\n1. After successfully setting up the Gateway Affiliation in the previous step, click on the __Payment Conditions__ tab.\n2. Click the __+__ button in the upper right corner of the screen.\n3. Click the desired payment condition. In the case of PagSeguro Affiliation without redirect, this can be a [credit card](/en/docs/tutorials/how-to-configure-payment-conditions) or a [bank slip](/en/docs/tutorials/how-to-configure-a-bank-slip), for example.\n4. In the __Status__ flag, select the __Active__ option.\n5. Under __Process with affiliation__, select the __PagSeguro without redirect__ affiliation registered in the previous step.\n6. Click __Save__."}