Closed mklepaczewski closed 1 month ago
Hi @mklepaczewski , thank you for reporting this issue. We haven't encountered this specific warning before, and it seems to be an edge-case problem, potentially caused by a conflict with another plugin or configuration in your environment. Unfortunately, we're unable to reproduce the error on our end.
We noticed you're using an older version of the Mollie plugin (v7.6.0). It might be worth updating to the latest version, as this could resolve the issue. However, since this may also be related to Mollie's API or data structure, I would recommend reaching out to the Mollie Support Team to get further assistance, as they might have more insights on this behavior.
If you can provide more details on how to consistently reproduce this issue, feel free to share that with us, and we'll take another look.
I tracked down the issue.
According to Mollie's REST documentation for GET Payment details.cardHolder
field should be string
or null
. However, for some transactions this field is not present at all (we can share the transaction id, if you can provide a safe manner to do it), and $payment->details->cardHolder
does not exist. I confirmed that by capturing raw JSON response from Mollie.
PR has been created, see https://github.com/mollie/WooCommerce/pull/940
You can email me at first name dot last name at mollie dot com
and I'll take a look independently of our Woo integration team :)
@fjbender Sent. Thank you for the quick reply👍
This happens for Apple Pay payments, where we treat the payment as a card payment but don't have a cardholder name. The change proposed in #940 is valid IMHO.
WordPress: 6.4.1 WooCommerce: 9.0.2 PHP: 8.1.2 Mollie plugin: 7.6.0
PHP reports:
Warning: Undefined property: stdClass::$cardHolder
on the checkout success page. Stack trace: