You are here

public function PaymentReceipt::getOrderId in Ubercart 8.4

Returns the order ID that this payment was made for.

Return value

int The order ID.

Overrides PaymentReceiptInterface::getOrderId

File

payment/uc_payment/src/Entity/PaymentReceipt.php, line 88

Class

PaymentReceipt
Defines the payment receipt entity class.

Namespace

Drupal\uc_payment\Entity

Code

public function getOrderId() {
  return $this
    ->get('order_id')->target_id;
}