diff --git a/api/src/controllers/paypalController.ts b/api/src/controllers/paypalController.ts index 3baf4b9d..229a0443 100644 --- a/api/src/controllers/paypalController.ts +++ b/api/src/controllers/paypalController.ts @@ -8,6 +8,14 @@ import Booking from '../models/Booking' import User from '../models/User' import * as bookingController from './bookingController' +/** + * Create PayPal order. + * + * @async + * @param {Request} req + * @param {Response} res + * @returns {unknown} + */ export const createPayPalOrder = async (req: Request, res: Response) => { try { const { bookingId, amount, currency, name }: movininTypes.CreatePayPalOrderPayload = req.body