foss-labs / fossfolio

Discover, host and manage Events all in one place.
https://www.fossfolio.com
MIT License
21 stars 11 forks source link

Remove stripe and add support for razorpay and lemonsqueezy #156

Open sreehari2003 opened 1 month ago

sreehari2003 commented 1 month ago
DarkPhoenix2704 commented 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

DarkPhoenix2704 commented 1 month ago

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