Fix day pass payment ID handling to use full session ID#53
Merged
wearsshoes merged 1 commit intomainfrom Feb 18, 2026
Merged
Conversation
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
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
Collaborator
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.

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
session.idinstead ofsession.id.slice(-6)payment_idtoidto match the activation endpoint's expected query parameterImplementation Details
The previous implementation truncated session IDs to 6 characters, which created a mismatch between:
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