Skip to content

Add pay-later button to the bulk payment ticket#2009

Draft
maebeale wants to merge 1 commit into
mainfrom
maebeale/bulk-payment-pay-button
Draft

Add pay-later button to the bulk payment ticket#2009
maebeale wants to merge 1 commit into
mainfrom
maebeale/bulk-payment-pay-button

Conversation

@maebeale

@maebeale maebeale commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

🤖 suggested review level: 3 Read 📖 small controller action + route + one view button, mirrors the existing Registrations#pay flow

Lets a bulk-payment payer who submitted without paying (chose "Credit card (later)"/"Check") come back and pay by card — the ticket previously only showed "Payment pending" with no way to complete payment.

  • New POST bulk_payment/:slug/payBulkPayments#pay, mirroring Registrations#pay: opens a Stripe Checkout session for the submission’s expected total.
  • Extracted the shared Stripe-session builder so submit-path (reads form params) and pay-later-path (reads the saved submission) share it.
  • "Pay with credit card" button on the pending ticket; hidden once a payment exists.
  • Resulting charge already records via the existing webhook (PayChargeExtensions#create_bulk_payment) — no backend changes.

Guards: already-paid → back to ticket; nothing due (free/zero attendees) → back to ticket.

Base automatically changed from maebeale/bulk-payment-ticket-details to main July 22, 2026 13:37
A payer who submitted the bulk payment form without paying (chose
"Credit card (later)" or "Check") had no self-serve way to complete a
card payment — the ticket only showed "Payment pending". This adds a
"Pay with credit card" button on the pending ticket, mirroring
Registrations#pay: it opens a Stripe Checkout session for the submission's
expected total. The resulting charge already flows through the existing
webhook (PayChargeExtensions#create_bulk_payment) to record the payment.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@maebeale
maebeale force-pushed the maebeale/bulk-payment-pay-button branch from 93bac09 to 4766654 Compare July 22, 2026 18:10
Copilot AI review requested due to automatic review settings July 22, 2026 18:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants