public function PaymentGatewayInterface::applies in Commerce Core 8.2
Checks whether the payment gateway applies to the given order.
Ensures that the conditions pass.
Parameters
\Drupal\commerce_order\Entity\OrderInterface $order: The order.
Return value
bool TRUE if payment gateway applies, FALSE otherwise.
1 method overrides PaymentGatewayInterface::applies()
- PaymentGateway::applies in modules/
payment/ src/ Entity/ PaymentGateway.php - Checks whether the payment gateway applies to the given order.
File
- modules/
payment/ src/ Entity/ PaymentGatewayInterface.php, line 115
Class
- PaymentGatewayInterface
- Defines the interface for payment gateway configuration entities.
Namespace
Drupal\commerce_payment\EntityCode
public function applies(OrderInterface $order);