feat: Integrate Stripe payment processing and enhance admin settings management
CI/CD / test-and-build (push) Waiting to run
CI/CD / deploy (push) Blocked by required conditions

- Removed the previous demo payment system and implemented a real integration with Stripe for handling payments.
- Added new API routes for creating payment intents and handling webhooks from Stripe.
- Updated the database schema to include an Order model for storing payment details.
- Enhanced the admin page to manage pricing items, including the ability to upload 3D models.
- Introduced a settings management feature for the admin panel, allowing for dynamic key-value pairs.
- Improved the RobotModel component to support dynamic attire based on uploaded models.
- Added error handling and validation for file uploads and settings management.
This commit is contained in:
Najjar\NajjarV02
2026-04-14 10:14:18 +04:00
parent dc42aeb72a
commit 51671b85b8
13 changed files with 598 additions and 156 deletions
+19
View File
@@ -26,3 +26,22 @@ model Snapshot {
imageData String
createdAt DateTime @default(now())
}
model Order {
id String @id @default(cuid())
paymentIntentId String @unique
amount Int
currency String @default("aed")
status String
customerName String?
customerEmail String?
customerPhone String?
customerAddress String?
customerCity String?
customerCountry String?
customerPostalCode String?
persona String?
color String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}