You are here

SupportsUpdatingStoredPaymentMethodsInterface.php in Commerce Core 8.2

File

modules/payment/src/Plugin/Commerce/PaymentGateway/SupportsUpdatingStoredPaymentMethodsInterface.php
View source
<?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);

}

Interfaces

Namesort descending Description
SupportsUpdatingStoredPaymentMethodsInterface Defines the interface for gateways which support updating stored payment methods.