Helper/Order.php
private function formatTransactionData($order, $transaction, $amount)
    {
        return [
            'Time' => $this->timezone->formatDateTime(
                date('Y-m-d H:i:s', $transaction->date / 1000),
                2,
                2
            ),
            'Reference' => $transaction->reference,
            'Amount' => $order->getBaseCurrency()->formatTxt($amount / 100),
            'Transaction ID' => $transaction->id
        ];
    }
private function formatTransactionData($order, $transaction, $amount)
    {
        return [
            'Time' => $this->timezone->formatDateTime(
                date('Y-m-d H:i:s', $transaction->date / 1000),
                2,
                2
            ),
            'Reference' => $transaction->reference,
            'Amount' => $order->getBaseCurrency()->formatTxt($amount / 100),
            'Transaction ID' => $transaction->id
        ];
    }
private function formatTransactionData ( $ order , $ transaction , $ amount ) { return [ 'Time' => $ this -> timezone -> formatDateTime ( date ( 'Y-m-d H:i:s' , $ transaction -> date / 1000 ) , 2 , 2 ) , 'Reference' => $ transaction -> reference , 'Amount' => $ order -> getBaseCurrency ( ) -> formatTxt ( $ amount / 100 ) , 'Transaction ID' => $ transaction -> id ] ; }
Generate data to be stored with the transaction

@param OrderModel $order
@param \stdClass $transaction
@param null|int $amount
Generate data to be stored with the transaction