Once a purchase is completed, you can retrieve details of the order using orderByID
. The costs related to the order as well as the Cart
that the order was checked out from are all available to you. This is especially helpful when you need to build dashboards or populate order history pages.
Example