public function getCurrency($orderIndex = 0)
    {
        $orderStatuses = $this->getOrderStatuses();
        return array_key_exists('currency', $orderStatuses[$orderIndex])
            ? $orderStatuses[$orderIndex]['currency'] : null;
    }
public function getCurrency($orderIndex = 0)
    {
        $orderStatuses = $this->getOrderStatuses();
        return array_key_exists('currency', $orderStatuses[$orderIndex])
            ? $orderStatuses[$orderIndex]['currency'] : null;
    }
public function getCurrency ( $ orderIndex = 0 ) { $ orderStatuses = $ this -> getOrderStatuses ( ) ; return array_key_exists ( 'currency' , $ orderStatuses [ $ orderIndex ] ) ? $ orderStatuses [ $ orderIndex ] [ 'currency' ] : null ; }
The currency code of the payment is ISO 4217.

If not specified, it is considered equal to the default currency code.

@param int $orderIndex
@return mixed|null
The currency code of the payment is ISO 4217 .