public function WorldpayDirect::deletePaymentMethod in Commerce Worldpay 8
Same name and namespace in other branches
- 8.2 src/Plugin/Commerce/PaymentGateway/WorldpayDirect.php \Drupal\commerce_worldpay\Plugin\Commerce\PaymentGateway\WorldpayDirect::deletePaymentMethod()
Deletes the given payment method.
Both the entity and the remote record are deleted.
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.
Overrides SupportsStoredPaymentMethodsInterface::deletePaymentMethod
File
- src/
Plugin/ Commerce/ PaymentGateway/ WorldpayDirect.php, line 137
Class
- WorldpayDirect
- Provides the Worldpay direct payment gateway.
Namespace
Drupal\commerce_worldpay\Plugin\Commerce\PaymentGatewayCode
public function deletePaymentMethod(PaymentMethodInterface $payment_method) {
// TODO: Implement deletePaymentMethod() method.
}