Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "develop",
"updateInternalDependencies": "patch",
"ignore": [],
"repo": "ciscode/nest-js-developer-kit",
Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

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

The Changesets config repo value doesn't match this repository (package.json points to https://github.com/CISCODE-MA/PaymentKit). This can affect generated changelog links and metadata. Update repo to the correct owner/repo string.

Suggested change
"repo": "ciscode/nest-js-developer-kit",
"repo": "CISCODE-MA/PaymentKit",

Copilot uses AI. Check for mistakes.
"preState": null
}
13 changes: 13 additions & 0 deletions .changeset/paymentkit_71368.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
'@ciscode/paymentkit': minor
---

## Summary

Standardized ESLint 9, Jest configuration, and GitHub workflows across the codebase with comprehensive bug fixes

## Changes

- Updated package configuration and workflows
- Enhanced code quality and automation tooling
- Improved CI/CD integration and monitoring capabilities
36 changes: 36 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# PaymentKit Environment Configuration
# Copy this file to .env and update with your actual values

# Application
NODE_ENV=development
LOG_LEVEL=debug
PORT=3000

# Stripe Configuration
STRIPE_PUBLIC_KEY=pk_test_your-public-key
STRIPE_SECRET_KEY=sk_test_your-secret-key
STRIPE_WEBHOOK_SECRET=whsec_your-webhook-secret
Comment on lines +11 to +12
Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

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

The env var names in this example don’t match what the Stripe config builder reads (PAYMENTKIT_STRIPE_API_KEY / PAYMENTKIT_STRIPE_WEBHOOK_SECRET). As written, users copying this file won’t be able to bootstrap PaymentKit from env.

Suggested change
STRIPE_SECRET_KEY=sk_test_your-secret-key
STRIPE_WEBHOOK_SECRET=whsec_your-webhook-secret
PAYMENTKIT_STRIPE_API_KEY=sk_test_your-secret-key
PAYMENTKIT_STRIPE_WEBHOOK_SECRET=whsec_your-webhook-secret

Copilot uses AI. Check for mistakes.

# PayPal Configuration
PAYPAL_CLIENT_ID=your-client-id
PAYPAL_CLIENT_SECRET=your-client-secret
PAYPAL_MODE=sandbox
PAYPAL_WEBHOOK_ID=your-webhook-id
Comment on lines +15 to +18
Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

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

The env var names in this example don’t match what the PayPal config builder reads (PAYMENTKIT_PAYPAL_CLIENT_ID / PAYMENTKIT_PAYPAL_CLIENT_SECRET / optional PAYMENTKIT_PAYPAL_WEBHOOK_ID). Update these names so the example is usable.

Suggested change
PAYPAL_CLIENT_ID=your-client-id
PAYPAL_CLIENT_SECRET=your-client-secret
PAYPAL_MODE=sandbox
PAYPAL_WEBHOOK_ID=your-webhook-id
PAYMENTKIT_PAYPAL_CLIENT_ID=your-client-id
PAYMENTKIT_PAYPAL_CLIENT_SECRET=your-client-secret
PAYPAL_MODE=sandbox
PAYMENTKIT_PAYPAL_WEBHOOK_ID=your-webhook-id

Copilot uses AI. Check for mistakes.

# Database (for payment records)
MONGODB_URI=mongodb://localhost:27017/paymentkit-dev
POSTGRES_URI=postgresql://user:password@localhost:5432/paymentkit-dev

# Idempotency & Retries
IDEMPOTENCY_KEY_EXPIRY_HOURS=24
MAX_RETRY_ATTEMPTS=3
RETRY_DELAY_MS=1000

# Webhook Configuration
WEBHOOK_SIGNATURE_VERIFICATION=true
WEBHOOK_BACKOFF_STRATEGY=exponential
WEBHOOK_MAX_RETRIES=5

# Currency & Formatting
DEFAULT_CURRENCY=USD
AMOUNT_DECIMAL_PLACES=2
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Bug Report
description: Report a bug or unexpected behavior
title: "[Bug]: "
title: '[Bug]: '
labels: [bug]
body:
- type: input
attributes:
label: PaymentKit Version
placeholder: "v1.1.0"
placeholder: 'v1.1.0'
validations:
required: true

Expand All @@ -31,4 +31,4 @@ body:
- PayPal
- Both
validations:
required: true
required: true
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Feature Request
description: Suggest a new feature
title: "[Feature]: "
title: '[Feature]: '
labels: [enhancement]
body:
- type: textarea
Expand All @@ -13,4 +13,4 @@ body:
attributes:
label: Proposed Solution
validations:
required: true
required: true
Loading
Loading