Skip to content

Conversation

@syed-reza98
Copy link
Collaborator

This pull request introduces comprehensive support for the SSLCommerz payment gateway, including environment configuration, database setup, utility scripts for payment configuration management, and documentation updates. The changes ensure that organizations and stores are correctly linked to payment configurations, and provide tools to verify and automate the setup process for multi-tenant environments.

SSLCommerz Payment Gateway Integration

  • Added SSLCommerz environment variables to .env.example for store ID, password, sandbox mode, and API endpoints, enabling secure and configurable payment gateway integration.
  • Provided a SQL migration script add-demo-payment-config.sql to create a demo SSLCommerz payment configuration for an organization in the database.

Utility Scripts for Payment Configuration

  • Added create-payment-config.mjs, create-all-payment-configs.mjs, and check-payment-config.mjs scripts to automate creation, verification, and listing of SSLCommerz payment configurations for organizations and stores. These scripts check for existing configs, create new ones as needed, and validate environment variables. [1] [2] [3]
  • Added check-payment-setup.mjs to verify that all stores have matching payment configurations and report any mismatches, improving reliability for multi-tenant setups.

Documentation and Developer Experience

  • Updated .github/copilot-instructions.md to clarify that middleware.ts now handles subdomain routing and authentication protection, and that protected routes are managed via a protectedPaths array. Instructions for adding protected routes and payment setup have been improved for clarity. [1] [2] [3] [4]
  • Added .vscode/mcp.json to support shadcn CLI in VSCode, streamlining component management for developers.

These changes collectively improve payment gateway setup, multi-tenant support, and developer onboarding for the project.

rafiqul4 and others added 25 commits December 20, 2025 00:41
Added comprehensive documentation for payment API, dashboard UI, and integration plan. Introduced new payment-related API routes, components, and service files for SSLCommerz and payment orchestration. Updated Prisma schema for payment gateways and configurations. Initial UI pages for payment success/failure and dashboard settings are included.
Introduces a toast notification system using @radix-ui/react-toast with new UI components (toast, toaster, use-toast). Updates SSLCommerz webhook routes to improve metadata handling and standardize payment status values to 'SUCCEEDED' instead of 'PAID'. Adds @radix-ui/react-toast to dependencies.
Updated DATABASE_URL with new connection string.
Deleted the initial PostgreSQL migration SQL file. Updated prisma schema to add directUrl for Prisma Accelerate. Fixed organization store relation in setup-payment-configs API route. Added a test-connection script to verify Prisma database connectivity.
This reverts commit 1db9b61.
@vercel
Copy link

vercel bot commented Dec 20, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
stormcomui Error Error Dec 20, 2025 7:31pm

Copy link
Contributor

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

*/

import { NextResponse } from 'next/server';
import { getServerSession } from 'next-auth';

import { NextResponse } from 'next/server';
import { getServerSession } from 'next-auth';
import { authOptions } from '@/lib/auth';
if (validation.status === 'VALID' || validation.status === 'VALIDATED') {
const orderId = data.value_a;
const organizationId = data.value_b;
const storeId = data.value_c;

function SuccessContent() {
const searchParams = useSearchParams();
const router = useRouter();
DialogHeader,
DialogTitle,
} from '@/components/ui/dialog';
import { CreditCard, Wallet, DollarSign, CheckCircle2, XCircle, Loader2, ArrowRight, History } from 'lucide-react';
];

export default function PaymentSettingsPage() {
const { data: session } = useSession();
* Shared type definitions for payment processing
*/

import { PaymentGateway, PaymentMethod, PaymentStatus as PrismaPaymentStatus } from '@prisma/client';
@syed-reza98 syed-reza98 added documentation Improvements or additions to documentation enhancement New feature or request question Further information is requested Priority 1 type:story Phase 1 dependencies Pull requests that update a dependency file labels Dec 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation enhancement New feature or request Phase 1 Priority 1 question Further information is requested type:story

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

5 participants