feat(billing): wire pymthouse getPlans + subscribe checkout - #455
Draft
eliteprox wants to merge 4 commits into
Draft
feat(billing): wire pymthouse getPlans + subscribe checkout#455eliteprox wants to merge 4 commits into
eliteprox wants to merge 4 commits into
Conversation
Expose BPP plan catalogue and optional M2M checkout through the PymthouseAdapter so agent/BFF callers can list plans and start Stripe Checkout without inventing marketplace UI or last-mile credit APIs.
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
eliteprox
marked this pull request as draft
August 6, 2026 02:12
Drop the hand-rolled M2M checkout helper; adapter.subscribe and error mapping now go through PmtHouseClient / PmtHouseError from builder-sdk.
Contributor
Author
|
Follow-up pushed: subscribe now uses Related:
|
builder-sdk#50 merged and published; replace the git branch pin so createBillingCheckout comes from the npm release.
Contributor
Author
|
Pinned to published |
Move off the interim 0.6.2 pin to the published Sonar/CI security patch.
Contributor
Author
|
Bumped pin to published |
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
getPlansonPymthouseAdaptervialistBillingProducts→mapBillingProductsToPlans(active products only).subscribe?via SDKcreateBillingCheckout(@pymthouse/builder-sdk@0.6.3).provider_adapters):GET /api/v1/billing/{provider}/plans,POST /api/v1/billing/{provider}/subscribe.providerPlanIdstarts provider checkout before persisting the local row (no orphan on checkout failure) and returnscheckoutUrl/subscriptionRef.docs/pymthouse-integration.md.Test plan
@pymthouse/builder-sdk@0.6.3provider_adaptersON + pymthouse M2M env,GET /api/v1/billing/pymthouse/plansreturns live productsPOST …/subscribewith a realplanIdreturns a Stripe Checkout URL