on GitHub" data-tooltip-id=":R1blcldb:">v2.5.1·Edited Oct 9·
In this document, you’ll learn what a payment collection is and how the Medusa application uses it with the Cart Module.
A payment collection stores payment details related to a resource, such as a cart or an order. It’s represented by the PaymentCollection data model.
Every purchase or request for payment starts with a payment collection. The collection holds details necessary to complete the payment, including:
The payment collection supports multiple payment sessions and payments.
You can use this to accept payments in increments or split payments across payment providers.
The Cart Module provides cart management features. However, it doesn’t provide any features related to accepting payment.
During checkout, the Medusa application links a cart to a payment collection, which will be used for further payment processing.
It also implements the payment flow during checkout as explained in this documentation.