Repository navigation
Monthly Giving: Leave Slipflow's monthly gifts to Slipflow - #1482
Merged
Merged
Conversation
Slipflow charges monthly gifts itself and will write a recurring donation as a copy for CC's display, receipts and reports. CC keeps the cancel and leaves the rest alone. A recurring donation is Slipflow's when a charge on its donation started a stripe_recurrence. CC's charger skips any donation with a Slipflow charge, in the daily due query and in a forced run, so the order Slipflow's rows become visible in doesn't matter. CC refuses a new card, amount or paydate, staff edits, holds, and converting a Slipflow-charged donation to recurring. The donor page offers cancel, address and a one-time gift, with a line to cancel and give again to change the gift. The staff panel hides the edit button. The receipt and the failure emails point to the cancel. stripe_recurrences gets stopped_at and stop_reason for the gifts Slipflow stops on its own: three declines in a row, or a refunded or disputed first payment. The recurring donations without cards report now joins cards. It raised a missing FROM-clause error before.
caseyhelbling
commented
Nov 25, 2026
aliyahmoore
approved these changes
Nov 25, 2026
There was a problem hiding this comment.
Seems good to me! Looks like there are a few follow-ups this leaves for Slipflow and just wanted to note them here:
- Writing CC's copy when a gift starts: #522 (tix#4799)
- Skipping gifts cancelled in CC when charging: tix#4799
- Stopping after three declines in a row: tix#4798
- Stopping when the first payment was refunded or disputed: tix#4745
- Saving stopped_at and stop_reason, and setting n_failures to 3 when a gift stops: doesn't look like it's on a ticket yet.
- Email lists not updating since RecurringDonationCreatedJob doesn't run for the copy: doesn't look like it has a ticket.
Happy to create tickets for the last two if needed.
Collaborator
Author
Yep - good list. Most of these are already accounted for in tickets/prs.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of CommitChange/tix#4799. Slipflow charges monthly gifts from its stripe_recurrences and writes a recurring donation as a copy, so receipts, the dashboard and reports keep working. CC owns the cancel and nothing else.
Deploy this before the Slipflow PR that writes the copy. Until then CC's charger would treat those rows as its own.
RecurringDonation.slipflow). No new column._all_that_are_dueand inPayRecurringDonation.with_stripe, forced runs included.convert_donation_to_recurring_donationfor any Slipflow-charged donation.stripe_recurrences.stopped_at/stop_reasonfor Slipflow's own stops (three declines in a row, refunded or disputed first payment). Slipflow setsn_failures = 3once when it stops, so CC shows the gift as failed.Every CC path that sets
n_failureson these rows is refused or skipped:update_card_id,update_amountand staffupdateare refused, the charger's success and failure updates never run, andinsert_recurring_donationcan't run on these donations because convert is refused.fail_a_recurring_donationonly sets 3, and nothing calls it.Not covered, since Slipflow writes the row without CC's callbacks:
RecurringDonationCreatedJobdoesn't fire on Slipflow's copy. The cancel callbacks still fire, since cancels go through CC'scancel!.Also fixes the super admin recurring donations without cards report, which raised a missing FROM-clause error on main.
Tested with rspec in a local container: the full suite, plus new specs for the marker, the charger, each refusal, the donor and staff controllers, and the emails.