Open sreehari2003 opened 1 month ago
I have a sample schema. WIll drop here
model Orders {
id String @id @unique
userId String?
user User? @relation(fields: [userId], references: [uid])
amount Decimal
currency String
notes Json?
status String @default("pending")
captureTime DateTime?
tickets Ticket[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
You can use this for razor pay
Razorpay would do the job. Why lemon squeezy?
The razor pay should not be a mandatory requirement to run the product. If the razorpay is not configured, We should disable the paid events. The normal events should work as normal
Ideally a new table should be added to handle payment info
In ticket table a transaction column needs to be added to store transaction id
for refund process