Skip to content

Commit

Permalink
install razorpay, uncomment Get Records, create plan route
Browse files Browse the repository at this point in the history
  • Loading branch information
yash22arora committed May 27, 2024
1 parent fd516b5 commit 03a078e
Show file tree
Hide file tree
Showing 6 changed files with 140 additions and 386 deletions.
46 changes: 31 additions & 15 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"jsonwebtoken": "^9.0.0",
"mongoose": "^7.0.3",
"morgan": "^1.10.0",
"razorpay": "^2.9.4",
"stripe": "^12.16.0",
"typescript": "^5.4.5"
},
Expand Down
4 changes: 2 additions & 2 deletions server/src/api/models/plan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface IPlan extends Document {
hasTxtRecord: boolean;
status: TPlanStatus;
expiry: Date;
stripeSubscriptionId: string;
razorpaySubscriptionID: string;
created_at: Date;
}

Expand All @@ -22,7 +22,7 @@ const planSchema: Schema<IPlan> = new mongoose.Schema({
status: { type: String, required: true, default: "processing" },
hasTxtRecord: { type: Boolean, required: true, default: false },
expiry: { type: Date, required: true },
stripeSubscriptionId: { type: String, required: true, default: "x" },
razorpaySubscriptionID: { type: String, required: true, default: "x" },
created_at: { type: Date, default: Date.now },
});

Expand Down
Loading

0 comments on commit 03a078e

Please sign in to comment.