interface SupportsUpdatingStoredPaymentMethodsInterface in Commerce Core 8.2
Defines the interface for gateways which support updating stored payment methods.
Hierarchy
- interface \Drupal\commerce_payment\Plugin\Commerce\PaymentGateway\SupportsUpdatingStoredPaymentMethodsInterface
Expanded class hierarchy of SupportsUpdatingStoredPaymentMethodsInterface
All classes that implement SupportsUpdatingStoredPaymentMethodsInterface
2 files declare their use of SupportsUpdatingStoredPaymentMethodsInterface
- OnsiteInterface.php in modules/
payment_example/ src/ Plugin/ Commerce/ PaymentGateway/ OnsiteInterface.php - PaymentMethodAccessControlHandler.php in modules/
payment/ src/ PaymentMethodAccessControlHandler.php
File
- modules/
payment/ src/ Plugin/ Commerce/ PaymentGateway/ SupportsUpdatingStoredPaymentMethodsInterface.php, line 10
Namespace
Drupal\commerce_payment\Plugin\Commerce\PaymentGatewayView source
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);
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SupportsUpdatingStoredPaymentMethodsInterface:: |
public | function | Updates the given payment method. | 1 |