Payment\Repository
Magento\Sales\Model\Order\Payment\Repository
What it does
The Order Payment Repository provides a centralized way to retrieve, save, delete, and search for order payment records in Magento 2.
Developers use this class when they need to programmatically manage payment information associated with orders, such as fetching payment details by ID, searching payments based on criteria, or persisting payment data changes.
It follows the repository pattern to abstract database operations and provides a clean API for payment entity management.
Public Methods
- getList()
- get()
- delete()
- save()
- create()