Skip to content

Commit

Permalink
create payment controller and add some methods
Browse files Browse the repository at this point in the history
  • Loading branch information
amitamrutiya committed Oct 21, 2023
1 parent 5d6f179 commit 44bd48b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions controller/Payments.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ exports.verifyPayment = async (req, res) => {
enrolledStudent.email,
courseEnrollmentEmail(enrolledStudent.name, enrolledCourse.courseName)
);

console.log("emailResponse" + emailResponse);

return res.status(200).json({
success: true,
message: "Signature verified and Course enrolled successfully",
});
} catch (error) {
return res.status(500).json({ success: false, error: error.message });
}
Expand Down

0 comments on commit 44bd48b

Please sign in to comment.