chore: paddle integration support#57
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
All alerts resolved. Learn more about Socket for GitHub. This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
There was a problem hiding this comment.
Pull request overview
Adds a new Paddle integration module to the payment-platform integrations repo, enabling Cryptlex user/license lifecycle automation from Paddle webhooks.
Changes:
- Introduces Paddle webhook server (
transaction.completed,subscription.paused,customer.created) with corresponding handlers and utilities. - Extends shared user utilities to support Paddle-specific user metadata upserts and placeholder users.
- Adds Paddle build/test scripts and wiring for TypeScript compilation and AWS workflow selection.
Reviewed changes
Copilot reviewed 17 out of 19 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| utils/userActions.ts | Exports createUser/updateUser and adds optional user metadata support for Paddle mapping. |
| tsconfig.json | Includes Paddle Node entrypoint in TS compilation. |
| paddle/tests/handleSubscriptionPaused.test.ts | Adds Vitest coverage for suspending licenses on subscription.paused. |
| paddle/tests/handleCustomerCreated.test.ts | Adds Vitest coverage for customer.created user upsert behavior. |
| paddle/tests/README.md | Documents how to run Paddle tests. |
| paddle/lib/utils/paddleUserActions.ts | Implements Paddle-customer-to-Cryptlex-user resolution/creation via user metadata. |
| paddle/lib/utils/getPaddleItemCustomData.ts | Extracts Cryptlex mapping from Paddle line item product custom data. |
| paddle/lib/utils/constants.ts | Centralizes Paddle metadata keys and origin constants. |
| paddle/lib/handlers/handleTransactionCompleted.ts | Handles license creation/renewal/resume for transaction.completed by origin. |
| paddle/lib/handlers/handleSubscriptionPaused.ts | Suspends licenses linked to a Paddle subscription. |
| paddle/lib/handlers/handleCustomerCreated.ts | Upserts Cryptlex user on Paddle customer creation. |
| paddle/lib/app.ts | Hono app that verifies Paddle webhook signatures and routes events to handlers. |
| paddle/index.node.ts | Node runtime entrypoint for Paddle integration. |
| paddle/index.aws.ts | AWS Lambda entrypoint for Paddle integration. |
| paddle/README.md | Paddle integration setup and deployment documentation. |
| package.json | Adds Paddle SDK dependency and Paddle build/test scripts. |
| package-lock.json | Locks new dependencies (Paddle SDK, Vite, transitive updates). |
| README.md | Adds Paddle to the root integrations list. |
| .github/workflows/aws.yml | Adds paddle as a selectable deployment target. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 18 out of 20 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|



No description provided.