{"section":"tracks","requestedLocale":"en","requestedSlug":"the-transaction-flow","locale":"en","slug":"the-transaction-flow","path":"docs/en/tracks/vtex-modules-getting-started/payments/the-transaction-flow.md","branch":"main","content":"The path that money travels when it is exchanged for a product or service is what we call a __transaction__.\n\nIn a VTEX store, a transaction begins every time a user chooses a [payment condition](/en/docs/tutorials/difference-between-payment-methods-and-payment-conditions) and completes the order. From there, the purchase data is sent to be validated by each member of the process.\n\nTransactions performed by VTEX payments module go through various statuses, from the beginning of the authorization process through the settlement of the value and the conclusion of the transaction.\n\nSee below an example timeline with the transaction statuses.\n\n![Transaction Flow](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tracks/vtex-modules-getting-started/payments/the-transaction-flow_1.jpg)\n\n1. __Authorizing__: This is the first status of a Payments transaction. At this stage, Payments indicates that the process of sending information to an acquirer or to another gateway has begun.\n2. __Authorized__: Upon the initiation of the authorization process, the acquirer or other gateway sends the transaction information to the issuing bank. The bank responds if the transaction should be authorized or not. If it denies the transaction, the payment is __canceled__. If it authorizes, the transaction status changes to __Authorized__.\n3. __Analyzing Risk (optional)__: Upon the authorization by the issuing bank, the __anti-fraud__ system acts by analyzing the risk of the transaction. This step is optional. However, we recommend using an anti-fraud to verify your transactions.\n4. __Risk Approved (optional)__: If the anti-fraud responds positively, the transaction receives the __risk approved__ status. If the anti-fraud identifies any evidence of fraud, the transaction is __canceled__.\n5. __Approved__: This status indicates that the transaction has gone through all possible verifications. It was authorized by the issuing bank and approved by the anti-fraud system. Thus, the transaction gains the __approved__ status.\n6. __Settlement of $__: This status indicates that the __settlement__ process of a specific ammount will start. It's important to note that, at this stage, the value __has not been settled yet__. There is only a warning that the process of settling this value will be carried out in the next status.\n7. __Settling__: In this status, the __settlement__ attempt actually starts. The systems responsible for that begin the process by which the ammount of the transaction will be settled.\n8. __Settled__: When the transaction reaches this status, it means that the ammount was __successfully settled__. From here, the __connector__ becomes entirely responsible for the flow. It is up to the retailer to monitor if the payment amount will be properly deposited in his account.\n9. __Finished__: The transaction reaches the __finished__ status when the invoice with the payment ammount is issued and linked to the order in the OMS. You should note that even after the settlement finishes successfully, [it's necessary to include the invoice in the order](/en/faq/why-has-a-transaction-been-successfully-settled-but-not-finalized-in-the-pci-gateway)."}