Skip to content

chore: paddle integration support#57

Merged
adnan-kamili merged 5 commits into
mainfrom
mumin/paddle
Feb 23, 2026
Merged

chore: paddle integration support#57
adnan-kamili merged 5 commits into
mainfrom
mumin/paddle

Conversation

@mumin-khan

Copy link
Copy Markdown
Collaborator

No description provided.

@socket-security

socket-security Bot commented Feb 13, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedvitest@​4.0.15 ⏵ 4.0.189610079 +199 +1100
Updatedvite@​7.2.7 ⏵ 7.3.196 +110082 +199100
Added@​paddle/​paddle-node-sdk@​3.6.09910010093100

View full report

@socket-security

socket-security Bot commented Feb 13, 2026

Copy link
Copy Markdown

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.

View full report

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Comment thread paddle/lib/utils/paddleUserActions.ts
Comment thread paddle/lib/handlers/handleTransactionCompleted.ts Outdated
Comment thread paddle/lib/handlers/handleTransactionCompleted.ts Outdated
Comment thread paddle/lib/utils/getPaddleItemCustomData.ts Outdated
Comment thread utils/userActions.ts
Comment thread paddle/lib/utils/paddleUserActions.ts
Comment thread paddle/lib/handlers/handleTransactionCompleted.ts Outdated
Comment thread paddle/lib/handlers/handleTransactionCompleted.ts
Comment thread README.md Outdated
Comment thread paddle/lib/utils/getPaddleItemCustomData.ts Outdated
Comment thread paddle/lib/utils/paddleUserActions.ts

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Comment thread paddle/lib/utils/paddleUserActions.ts Outdated
Comment thread paddle/lib/utils/paddleUserActions.ts Outdated
Comment thread paddle/lib/utils/paddleUserActions.ts
Comment thread paddle/lib/handlers/handleTransactionCompleted.ts
Comment thread paddle/lib/app.ts Outdated
@sonarqubecloud

Copy link
Copy Markdown

@adnan-kamili
adnan-kamili merged commit 950b5fe into main Feb 23, 2026
3 checks passed
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