{"section":"tutorials","requestedLocale":"en","requestedSlug":"setting-up-payments-with-onebuy","locale":"en","slug":"setting-up-payments-with-onebuy","path":"docs/en/tutorials/payments/payment-settings/setting-up-payments-with-onebuy.md","branch":"main","content":"You can set up OneBuy to receive payments at your store. With it, your customer chooses the __payment method__ OneBuy to make the purchase.\n\nTo configure OneBuy, follow the steps below:\n\n## Setting up OneBuy gateway affiliation\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. On the __Gateways Affiliation__ tab, click the __+__ button.\n3. Click the __OneBuy__ connector.\n4. In the __External Service Url__ field, configure the external URL that will be associated with `/pvt/payments?an={AccountName}`.\n5. Fill in the registration fields with the data provided by OneBuy (_appKey_ and _appToken_ fields).\n6. In __Implements Installments Service__, choose whether you want to use external installment services or the one that is configured on the portal. If you choose _yes_, the system will use the URL configured in the __Installments Service Url__ field.\n7. In __External Cancellation Service__, you must define whether or not to use an external cancellation service. If you choose _yes_, the system will use the URL configured in the __External Service Url__ field.\n8. In the __Installments Service Url__ field, you must configure the external URL that will be associated with `/options`.\n9. In __SoftDescriptor__, indicate the text that will appear to identify the transactions you made in your store.\n10. In __Captura de segurança antecipada__ (\"Early security capture\"), choose how long you want the capture to take after the transaction approval and the anti-fraud analysis. You can also disable this function.\n11. In __Use Anti-Fraud__, inform if you wish to use an anti-fraud system.\n12. Click __Save__.\n\n## Setting Up OneBuy payment condition\n1. Within Payments __Settings__, click on the __Payment Conditions__ tab.\n2. Click the __+__ button.\n3. Select the __OneBuy__ payment method.\n4. Click the __Status__ button to enable this payment condition.\n5. The __Process with affiliation__ field will already be filled by the _OneBuy_ option.\n6. If there is an anti-fraud set up in your store, you can activate it for this payment condition by checking the __Usar Anti-Fraud__ box.\n7. Choose whether you want payments to be made in cash or installments.\n8. If you wish, you can also opt for a [special payment condition](/en/docs/tutorials/special-conditions).\n9. Click __Save__.\n\nAfter following the steps indicated above, OneBuy will appear at your store checkout as a payment option for your customers to use."}