Contribution Confirm incorrectly debit card information even if using credit card
To reproduce:
- Create normal Contribution Page
- Enable dummy credit card
- Enable the Confirmation Page
Then go to the test page, enter test card (4111111111111111
) and submit to go to the confirmation page:
The bug was introduced somewhere between 5.57 and 5.60. I suspect it's related to this PR: https://github.com/civicrm/civicrm-core/pull/25239
Those changes have not been applied to ThankYou.tpl
.
When debugging, the $contributeMode
was set to 'debit'. It seems to be the default value in the parent class. The code also has a code comment from 2016 saying that "The concept of contributeMode is deprecated."