src/Transaction/Transaction.php
public function getStorableData()
    {
        return [
            'id' => 'Transaction',
            'flat' => [
                'Total' => \Heystack\Ecommerce\convertMoneyToString($this->total),
                'Status' => $this->status,
                'Currency' => $this->currencyService->getActiveCurrencyCode()
            ],
            'related' => []
        ];

    }
public function getStorableData()
    {
        return [
            'id' => 'Transaction',
            'flat' => [
                'Total' => \Heystack\Ecommerce\convertMoneyToString($this->total),
                'Status' => $this->status,
                'Currency' => $this->currencyService->getActiveCurrencyCode()
            ],
            'related' => []
        ];

    }
public function getStorableData ( ) { return [ 'id' => 'Transaction' , 'flat' => [ 'Total' => \ Heystack \ Ecommerce \ convertMoneyToString ( $ this -> total ) , 'Status' => $ this -> status , 'Currency' => $ this -> currencyService -> getActiveCurrencyCode ( ) ] , 'related' => [ ] ] ; }
Get the data to store
@return array The data to store
Get the data to store