Skip to content

Commit

Permalink
Merge branch 'demo' of https://github.com/aelassas/movinin into demo
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Feb 1, 2025
2 parents e8937ce + da7f906 commit ee348a0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions api/src/controllers/paypalController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee348a0

Please sign in to comment.