You are here

public function Payment::getCurrencyCode in Payment 8.2

Gets the line items' ISO 4217 currency code.

Return value

string

Overrides LineItemCollectionInterface::getCurrencyCode

File

src/Entity/Payment.php, line 133

Class

Payment
Defines a payment entity.

Namespace

Drupal\payment\Entity

Code

public function getCurrencyCode() {
  return $this
    ->get('currency')->target_id;
}