feat(stripe): supports stripe connector#251
Conversation
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/cli@0.0.41-pr.251.ff9ed73Prefer not to change any import paths? Install using npm alias so your code still imports npm i "base44@npm:@base44-preview/cli@0.0.41-pr.251.ff9ed73"Or add it to your {
"dependencies": {
"base44": "npm:@base44-preview/cli@0.0.41-pr.251.ff9ed73"
}
}
Preview published to npm registry — try new features instantly! |
|
README check ran. 5 discrepancies found that need to be fixed:
Please update README.md manually or re-run this check after granting write permissions. |
|
README check ran. 4 issue(s) found and applied: (1) Added missing |
|
README check ran. 8 issues found and applied: (1) Added 'eject' command to table, (2) Added 'connectors pull' command, (3) Added 'connectors push' command, (4) Added 'types generate' command, (5) Updated 'create' description, (6) Updated 'deploy' description, (7) Updated 'link' description, (8) Updated 'logout' and 'whoami' descriptions. README.md has been updated in this branch. |
|
README check ran. 4 issue(s) found and applied: added missing commands (eject, connectors pull/push, types generate) and updated command descriptions to match code. README.md has been updated in this branch. |
|
README check ran. 7 issues found and applied: (1) Updated 'create' description to match code, (2) Updated 'deploy' description with full resource list, (3) Uncommented and updated 'eject' command, (4) Updated 'link' description, (5) Updated 'logout' description to match code, (6) Added 'connectors pull' and 'connectors push' commands, (7) Added 'types generate' command, (8) Updated agent command descriptions with full details. README.md has been updated in this branch. |
|
README check ran. 7 issues found and applied: Added missing commands (eject, connectors pull, connectors push, types generate), updated command descriptions to match source code (create, deploy, link, logout, whoami, agents pull/push, entities push). README.md has been updated in this branch. |
|
README check ran. 5 issues found and applied: (1) added missing eject command, (2) added missing connectors pull/push commands, (3) added missing types generate command, (4) updated descriptions to match code exactly. README.md has been updated in this branch. |
|
README check ran. 6 issue(s) found and applied: added missing commands (logout, eject, connectors pull/push, types generate) and updated command descriptions to match code. README.md has been updated in this branch. |
|
README check ran. Found 7 issue(s) and applied fixes: Added missing |
Add Stripe connector support with OAuth flow, deploy/pull integration, and connector management commands. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
a509d96 to
828eb87
Compare
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
|
@claude please review |
|
Claude finished @kfirstri's task in 1m 49s —— View job Code Review
|
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…nectionId Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Port stripe mock methods from deleted Base44APIMock.ts to TestAPIServer.ts, adapting from MSW to Express-based test server pattern. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Note
Description
This PR adds Stripe payment connector support to the Base44 CLI, enabling users to install, sync, and remove Stripe integrations alongside existing OAuth connectors. It refactors the connector sync result types into discriminated unions (
OAuthSyncResult,StripeSyncResult) for better type safety, introduces a newpullAllConnectors()function that unifies OAuth and Stripe connector fetching, and improves the deploy and push commands to properly handle and display Stripe provisioning results.Related Issue
None
Type of Change
Changes Made
installStripe(),getStripeStatus(), andremoveStripe()API functions with Zod-validated responses and camelCase transformsStripeConnectorSchemaandSTRIPE_CONNECTOR_TYPEconstant; extendedConnectorSyncResultunion withOAuthSyncResultandStripeSyncResultdiscriminated typesstripe.tsmodule withsyncStripeConnector()andisStripeInstalled()handling install, removal, and already-synced states fully isolated from OAuth logiccore/resources/connector/pull.tswithpullAllConnectors()that merges OAuth connectors and Stripe status into a unifiedConnectorResource[]pushConnectors()to delegate tosyncOAuthConnectors()andsyncStripeConnector()with dedicated helper functionsdeployandpushCLI commands to display Stripe provisioning output (claim URL, connectors dashboard link)getConnectorsUrl()helper inurls.tsfor linking to the connectors dashboardconnectionIdpresence and added null-guard inrunOAuthFlowWithSkip()mockStripeInstall,mockStripeStatus,mockStripeRemove,mockStripeInstallError) and newwith-stripe-connectortest fixtures to the test infrastructureTesting
npm test)Checklist
docs/(AGENTS.md) if I made architectural changesAdditional Notes
The Stripe connector is modelled differently from OAuth connectors: it uses a separate provisioning API (
/payments/stripe/...) rather than the generic integrations endpoint. ThesyncStripeConnector()function handles install, removal, and already-synced states independently, keeping Stripe logic fully isolated from OAuth connector sync. TheclaimUrlreturned during Stripe provisioning is surfaced to the user in the CLI output along with a link to the connectors dashboard.🤖 Generated by Claude | 2026-03-10 10:00 UTC