Skip to content

Fix day pass payment ID handling to use full session ID#53

Merged
wearsshoes merged 1 commit intomainfrom
claude/fix-day-pass-link-0ikIe
Feb 18, 2026
Merged

Fix day pass payment ID handling to use full session ID#53
wearsshoes merged 1 commit intomainfrom
claude/fix-day-pass-link-0ikIe

Conversation

@Coponder
Copy link
Collaborator

Summary

This PR fixes the day pass payment ID handling by storing and querying the full Stripe checkout session ID instead of truncating it to the last 6 characters. This resolves issues with payment ID matching in Airtable and simplifies the lookup logic.

Key Changes

  • Webhook handler: Changed day pass record creation to store the full session.id instead of session.id.slice(-6)
  • Activation endpoint: Removed complex truncation logic that was attempting to preserve multi-pass suffixes (e.g., "-1", "-2") and now uses the full payment ID for Airtable queries
  • Checkout creation: Updated the success URL parameter name from payment_id to id to match the activation endpoint's expected query parameter

Implementation Details

The previous implementation truncated session IDs to 6 characters, which created a mismatch between:

  • What was stored in Airtable (truncated ID)
  • What was being queried during activation (complex truncation logic)

By using the full session ID throughout, we eliminate this fragile truncation logic and ensure consistent payment ID matching across the system. The full session ID is unique and provides better traceability for debugging.

https://claude.ai/code/session_012iZN4w9gESaszoZAoijk6G

The activation API was truncating payment IDs to 6 chars, but guest day
passes stored the full Stripe session ID in Airtable. This mismatch
caused lookups to fail, showing "Pass Not Found" to customers.

Also fixes member day pass: stores full session ID instead of truncated,
and corrects the checkout redirect query param from payment_id to id.

https://claude.ai/code/session_012iZN4w9gESaszoZAoijk6G
@vercel
Copy link
Contributor

vercel bot commented Feb 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mox-sf Ready Ready Preview, Comment Feb 10, 2026 1:04am

Request Review

@claude
Copy link

claude bot commented Feb 10, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@Coponder Coponder marked this pull request as draft February 10, 2026 01:37
@wearsshoes wearsshoes marked this pull request as ready for review February 18, 2026 20:02
@wearsshoes wearsshoes merged commit 34b54dd into main Feb 18, 2026
3 checks passed
@wearsshoes
Copy link
Collaborator

Screenshot 2026-02-18 at 12 02 11 Fix works in preview. Pushing to prod!

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.

3 participants