Log in
Model

Settlement

Magento\Paypal\Model\Report\Settlement

What it does

This class manages PayPal Settlement Reports by fetching CSV report files from PayPal's SFTP server, parsing them, and saving the transaction data to the database.

Developers would use this class to automate the retrieval and processing of PayPal settlement reports for reconciliation and financial reporting purposes, either manually or through scheduled cron jobs.

Public Methods

  • beforeSave()
  • fetchAndSave()
  • createConnection()
  • parseCsv()
  • loadByAccountAndDate()
  • getRows()
  • getFieldLabel()
  • getSftpCredentials()