Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • CiviCRM Core CiviCRM Core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
  • Issues 1k
    • Issues 1k
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • DevelopmentDevelopment
  • CiviCRM CoreCiviCRM Core
  • Issues
  • #4189

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:

image

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."

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking