src/Reconciliation/Bridge/PaypalBridge.php
public function buildPayoutFromId( $sPayoutId ) {
		$oPayout = new Freeagent\DataWrapper\PayoutVO();
		$oPayout->setId( $sPayoutId );

		try {
			$oDets = $this->getTxnChargeDetails( $sPayoutId );
			$oPayout->setDateArrival( strtotime( $oDets->PaymentDate ) )
					->setCurrency( $oDets->GrossAmount->currencyID );

			$oPayout->addCharge(
				$this->buildChargeFromTransaction( $sPayoutId )
			);
		}
		catch ( \Exception $oE ) {
		}

		return $oPayout;
	}
public function buildPayoutFromId( $sPayoutId ) {
		$oPayout = new Freeagent\DataWrapper\PayoutVO();
		$oPayout->setId( $sPayoutId );

		try {
			$oDets = $this->getTxnChargeDetails( $sPayoutId );
			$oPayout->setDateArrival( strtotime( $oDets->PaymentDate ) )
					->setCurrency( $oDets->GrossAmount->currencyID );

			$oPayout->addCharge(
				$this->buildChargeFromTransaction( $sPayoutId )
			);
		}
		catch ( \Exception $oE ) {
		}

		return $oPayout;
	}
public function buildPayoutFromId ( $ sPayoutId ) { $ oPayout = new Freeagent \ DataWrapper \ PayoutVO ( ) ; $ oPayout -> setId ( $ sPayoutId ) ; try { $ oDets = $ this -> getTxnChargeDetails ( $ sPayoutId ) ; $ oPayout -> setDateArrival ( strtotime ( $ oDets -> PaymentDate ) ) -> setCurrency ( $ oDets -> GrossAmount -> currencyID ) ; $ oPayout -> addCharge ( $ this -> buildChargeFromTransaction ( $ sPayoutId ) ) ; } catch ( \ Exception $ oE ) { } return $ oPayout ; }
With Paypal, the Transaction and the Payout are essentially the same thing.
@param string $sPayoutId
@return Freeagent\DataWrapper\PayoutVO
With Paypal the Transaction and the Payout are essentially the same thing .