CIVIMM-494: Fix reconcile job processor_type parameter#19
Conversation
… Connect' The processor_parameters used 'Stripe' but civicrm_payment_attempt records use 'Stripe Connect' (the PaymentProcessorType name). This caused the reconciliation job to never find stuck Stripe attempts.
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a critical issue where the scheduled job designed to reconcile stuck payment attempts was failing to identify Stripe transactions. The problem stemmed from a mismatch in the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request correctly fixes a bug where the payment reconciliation job used the wrong processor name for Stripe, preventing it from finding and processing stuck payments. The changes update the default job parameters and associated documentation from 'Stripe' to 'Stripe Connect'. The fix is accurate and addresses the problem. I have added one comment regarding the hardcoded processor name, suggesting a more robust approach for future maintainability.
Overview
The reconciliation scheduled job default parameter used
[Stripe,2]butcivicrm_payment_attempt.processor_typestoresStripe Connect(thePaymentProcessorTypename). This mismatch meant the job would never find stuck Stripe payment attempts.Before
Job parameter
[Stripe,2]→ queriesWHERE processor_type = 'Stripe'→ 0 results (actual value isStripe Connect)After
Job parameter
[Stripe Connect,2]→ queriesWHERE processor_type = 'Stripe Connect'→ finds stuck attempts correctlyTechnical Details
Stripe Connectis the value fromCRM_Stripe_Helper_Constants::PROCESSOR_NAMEused when creating payment attemptsStripeandStripe Connectfor backwards compatibility (see uk.co.compucorp.stripe PR #275)[Stripe,2]will still work due to the backwards-compat change in the Stripe extensionComments
Existing sites do NOT need to update their job config immediately — the Stripe extension's backwards-compat change handles both values. However, updating to
[Stripe Connect,2]is recommended for consistency.