payments
This commit is contained in:
parent
1a1ec57772
commit
525a63161e
|
@ -52,7 +52,8 @@ export default async (req, res) => {
|
|||
});
|
||||
|
||||
res.json({ sessionId: session.id });
|
||||
} catch ({ message }) {
|
||||
res.status(StatusCodes.BAD_REQUEST).json({ error: { message } });
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
res.status(StatusCodes.BAD_REQUEST).json({ error: { message: error.message } });
|
||||
}
|
||||
};
|
||||
|
|
Reference in New Issue