commerce-8.x-2.8/modules/payment/src/Plugin/Commerce/PaymentGateway/SupportsUpdatingStoredPaymentMethodsInterface.php
modules/payment/src/Plugin/Commerce/PaymentGateway/SupportsUpdatingStoredPaymentMethodsInterface.php
<?php namespace Drupal\commerce_payment\Plugin\Commerce\PaymentGateway; use Drupal\commerce_payment\Entity\PaymentMethodInterface; /** * Defines the interface for gateways which support updating stored payment methods. */ interface SupportsUpdatingStoredPaymentMethodsInterface { /** * Updates the given payment method. * * @param \Drupal\commerce_payment\Entity\PaymentMethodInterface $payment_method * The payment method. * * @throws \Drupal\commerce_payment\Exception\PaymentGatewayException * Thrown when the transaction fails for any reason. */ public function updatePaymentMethod(PaymentMethodInterface $payment_method); }