CIVIMM-462: Fix processor type name from Stripe to Stripe Connect#18
CIVIMM-462: Fix processor type name from Stripe to Stripe Connect#18
Conversation
The instalment generation job filtered by PaymentProcessorType.name using 'Stripe', but the actual type name in the database is 'Stripe Connect', causing the job to find zero eligible recurring contributions.
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 configuration error that prevented the instalment generation job from functioning correctly. By standardizing the payment processor type name to 'Stripe Connect' across both the service logic and the job definition, the system can now accurately identify and process recurring contributions, ensuring proper instalment generation. Highlights
Changelog
Activity
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. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request correctly addresses a bug where the instalment generation job was failing due to an incorrect payment processor type name. The changes from 'Stripe' to 'Stripe Connect' in both the service constant and the managed job definition are appropriate. I have added one review comment regarding the addition of a regression test, which is a recommended practice for bug fixes according to the repository's style guide.
Same mismatch as the generator job — the charge job also filtered by PaymentProcessorType.name using 'Stripe' instead of 'Stripe Connect'.
Verifies that the DEFAULT_PROCESSOR_TYPE constant matches the managed job parameter so a mismatch cannot silently break instalment generation.
Overview
The instalment generation job was finding zero eligible recurring contributions because it filtered by
PaymentProcessorType.name = 'Stripe', but the actual type name registered in the database is'Stripe Connect'.Before
processor_type=Stripedoes not matchPaymentProcessorType.name = 'Stripe Connect'After
Stripe Connectprocessor typeTechnical Details
DEFAULT_PROCESSOR_TYPEconstant inInstalmentGenerationServicefrom'Stripe'to'Stripe Connect'Job_InstalmentGenerator.mgd.php) parameter default to matchComments
Job_InstalmentCharge.mgd.phphas the sameprocessor_type=Stripemismatch — this should be addressed in a follow-upDummyprocessor type so this mismatch was not caught in CI