SupportsUpdatingStoredPaymentMethodsInterface.php in Commerce Core 8.2
File
modules/payment/src/Plugin/Commerce/PaymentGateway/SupportsUpdatingStoredPaymentMethodsInterface.phpView 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
Name![]() |
Description |
---|---|
SupportsUpdatingStoredPaymentMethodsInterface | Defines the interface for gateways which support updating stored payment methods. |