Skip to content

feat(payment-links): add payment links CRUD for SDK#39

Merged
oomokaro1 merged 3 commits into
mainfrom
feat/payment-links-crud
Jul 8, 2026
Merged

feat(payment-links): add payment links CRUD for SDK#39
oomokaro1 merged 3 commits into
mainfrom
feat/payment-links-crud

Conversation

@oomokaro1

Copy link
Copy Markdown
Contributor

Summary

  • Add CRUD endpoints for payment links management via SDK
  • SDK's createPaymentLink(), getPaymentLink(), listPaymentLinks() now have matching backend routes

Changes

New endpoints (API key auth)

  • POST /v1/payment-links — create a payment link with amount, asset, optional description/expiry
  • GET /v1/payment-links — list all payment links for the merchant
  • GET /v1/payment-links/:id — get a single payment link

New module

  • PaymentLinksModule — controller, service, module
  • Links generate shareable URLs at {FRONTEND_URL}/pay/{linkId}
  • Supports optional expiration, metadata, display currency

Auth

  • All routes use ApiKeyGuard (Bearer token)

Dependencies

Test plan

  • Lint clean
  • Format check clean

oomokaro1 added 2 commits July 8, 2026 20:35
- Add GET /v1/checkout/sessions/:id/payment endpoint (API key auth)
- Add webhook_endpoints and payment_links tables to Drizzle schema
- Remove @nestjs/typeorm and typeorm dependencies
- Replace TypeOrmHealthIndicator with Drizzle raw SQL health check
- Update smoke test and webhook controller test for new architecture
- Add POST /v1/payment-links — create payment link (API key auth)
- Add GET /v1/payment-links — list payment links (API key auth)
- Add GET /v1/payment-links/:id — get single payment link (API key auth)
- New PaymentLinksModule with service and controller
- Links generate shareable URLs at /pay/:id
@oomokaro1 oomokaro1 merged commit 3be61d8 into main Jul 8, 2026
1 check 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.

1 participant