Add StripeAgent for product/price catalog management (Espejo Digital)#125
Open
Add StripeAgent for product/price catalog management (Espejo Digital)#125
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Agent-Logs-Url: https://github.com/Tryonme-com/tryonyou-app/sessions/aed042fe-c25e-4edb-8cef-16e2f6ea83a1 Co-authored-by: LVT-ENG <214667862+LVT-ENG@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Tryonme-com/tryonyou-app/sessions/aed042fe-c25e-4edb-8cef-16e2f6ea83a1 Co-authored-by: LVT-ENG <214667862+LVT-ENG@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add product and price creation to StripeAgent
Add StripeAgent for product/price catalog management (Espejo Digital)
Apr 8, 2026
LVT-ENG
approved these changes
Apr 8, 2026
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.
The codebase lacked a reusable Stripe integration layer for creating products and prices, needed for the Espejo Digital digital-mirror pilot.
Changes
api/stripe_agent.pyStripeAgentclass wrapping Stripe's Product and Price APIscreate_product_with_price(name, amount, currency)— creates aProductthen a linkedPrice(amount in cents); returns normalized success/error dictlist_recent_activity(limit=5)— thin wrapper overstripe.Product.listfor sync verificationtests/test_stripe_agent.pyunittest.mock.patchto cover success path, custom currency,StripeErrorhandling, andlist_recent_activitydefault/explicit limitsUsage