public function Payment::getPaymentGatewayId in Commerce Core 8.2
Gets the payment gateway ID.
Return value
int|null The payment gateway ID, or null if unknown.
Overrides EntityWithPaymentGatewayInterface::getPaymentGatewayId
File
- modules/
payment/ src/ Entity/ Payment.php, line 96
Class
- Payment
- Defines the payment entity class.
Namespace
Drupal\commerce_payment\EntityCode
public function getPaymentGatewayId() {
return $this
->get('payment_gateway')->target_id;
}