Error on payment method deletion

Created on 6 February 2025, 2 months ago

Problem/Motivation

The deletion of a payment method throws an error.
Error: Call to undefined method Drupal\commerce_postfinance_checkout\PostFinanceServiceFactory::getTokenVersion() in Drupal\commerce_postfinance_checkout\Plugin\Commerce\PaymentGateway\PostFinanceCheckout->deletePaymentMethod() (line 733 of modules/contrib/commerce_postfinance_checkout/src/Plugin/Commerce/PaymentGateway/PostFinanceCheckout.php).

Steps to reproduce

Go to a user payment method section, try to delete one.

Proposed resolution

Use the proper method name PostFinanceServiceFactory::getTokenVersionService()

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇫🇷France GuillaumePacilly

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024