Skip to content

feat: added idempotency + recovery checks in fulfillment#12

Merged
Hacker-007 merged 4 commits intomainfrom
prog/fulfillment-idempotency-recovery
Mar 5, 2026
Merged

feat: added idempotency + recovery checks in fulfillment#12
Hacker-007 merged 4 commits intomainfrom
prog/fulfillment-idempotency-recovery

Conversation

@Hacker-007
Copy link
Copy Markdown
Collaborator

This PR adds idempotency + recovery checks in the fulfillment handler. This handler will be a consumer of an event queue and thus, it needs these checks.

@Hacker-007 Hacker-007 force-pushed the prog/fulfillment-idempotency-recovery branch from ac6b3ed to e4e205f Compare March 5, 2026 23:13
@Hacker-007 Hacker-007 changed the title prog: added idempotency + recovery checks in fulfillment feat: added idempotency + recovery checks in fulfillment Mar 5, 2026
Comment thread db/schema.sql Outdated
Comment thread src/handlers/fulfillment.py Outdated
Comment thread src/handlers/fulfillment.py
receipt_url=session.payment_intent.latest_charge.receipt_url,
price=session.amount_total,
items=[
# TODO: Think about the items a little more.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

we can use a raw, hard-coded lookup if we correlate a Stripe product ID with our internal list?—there are only five pieces

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I think that should work.

Comment thread src/handlers/fulfillment.py Outdated
Comment thread src/handlers/fulfillment.py Outdated
Comment thread src/handlers/fulfillment.py Outdated
Comment thread src/lib/db.py
Comment thread src/lib/printful.py
Comment thread requirements.txt Outdated
Comment thread src/lib/printful.py
Comment thread src/handlers/fulfillment.py Outdated
Comment thread src/handlers/fulfillment.py Outdated
@Hacker-007 Hacker-007 force-pushed the prog/fulfillment-idempotency-recovery branch from c0f0896 to 6d46d5b Compare March 5, 2026 23:49
@Hacker-007 Hacker-007 merged commit 7a988c2 into main Mar 5, 2026
2 checks passed
@Hacker-007 Hacker-007 deleted the prog/fulfillment-idempotency-recovery branch March 5, 2026 23:50
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