๐ Overview
Core Concepts
In e-commerce, Orders, Payments, and Transactions are foundational elements.
Orders
An order is created by the merchant/CMS and represents the collection of items or services a customer intends to purchase. It contains information about products, quantities, prices, and any applicable discounts or taxes. Multiple payments can be associated with a single order.
Payments
A payment represents a financial request initiated by a merchant for a specific order. It includes essential details such as the amount, currency, payment method, and current status. Each payment has a unique identifier that allows tracking throughout its lifecycle.
Transactions
A transaction represents a single attempt to move money between accounts. It captures detailed processing information, including authorization status, potential error codes, and associated fees. A payment may generate one or multiple transactions depending on the specific payment flow.
Sequence Explanation
Note here that the order can create multiple payments: for example in case the buyer left his cart and didn't complete the peyment. The payment itself can create multiple transactions: because not all transactions will succeed. Once one of the trasactions succeeds, you will get a webhook notification.