You are here

public function SupportsUpdatingStoredPaymentMethodsInterface::updatePaymentMethod in Commerce Core 8.2

Updates the given payment method.

Parameters

\Drupal\commerce_payment\Entity\PaymentMethodInterface $payment_method: The payment method.

Throws

\Drupal\commerce_payment\Exception\PaymentGatewayException Thrown when the transaction fails for any reason.

1 method overrides SupportsUpdatingStoredPaymentMethodsInterface::updatePaymentMethod()
Onsite::updatePaymentMethod in modules/payment_example/src/Plugin/Commerce/PaymentGateway/Onsite.php
Updates the given payment method.

File

modules/payment/src/Plugin/Commerce/PaymentGateway/SupportsUpdatingStoredPaymentMethodsInterface.php, line 21

Class

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

Namespace

Drupal\commerce_payment\Plugin\Commerce\PaymentGateway

Code

public function updatePaymentMethod(PaymentMethodInterface $payment_method);