public function StripeReview::isVisible in Commerce Stripe 8
Determines whether the pane is visible.
Return value
bool TRUE if the pane is visible, FALSE otherwise.
Overrides CheckoutPaneBase::isVisible
File
- src/
Plugin/ Commerce/ CheckoutPane/ StripeReview.php, line 87
Class
- StripeReview
- Adds payment intent confirmation for Stripe.
Namespace
Drupal\commerce_stripe\Plugin\Commerce\CheckoutPaneCode
public function isVisible() {
$gateway = $this->order
->get('payment_gateway');
if ($gateway
->isEmpty() || empty($gateway->entity)) {
return FALSE;
}
return $gateway->entity
->getPlugin() instanceof StripeInterface;
}