Active
Project:
Commerce Datatrans
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Dec 2025 at 08:58 UTC
Updated:
4 Dec 2025 at 08:58 UTC
Jump to comment: Most recent
If I provide a wrong (test) card number (e.g. 5102589999999913, 123, 06/2026) on checkout I get the following php warning:
Warning: Undefined array key "paymentMethod" in Drupal\commerce_datatrans\Plugin\Commerce\PaymentGateway\DatatransBase->createPaymentMethod() (line 237 of modules/contrib/commerce_datatrans/src/Plugin/Commerce/PaymentGateway/DatatransBase.php).
There should be no such warning, the standard payment failure message is enough.
Comments