stripe env

This commit is contained in:
Karol Wypchlo 2021-02-24 15:18:41 +01:00
parent dfa3dfe133
commit c20294a92d
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,8 @@ import { StatusCodes } from "http-status-codes";
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY);
export default async (req, res) => {
console.log(req.method);
if (req.method !== "POST") {
return res.status(StatusCodes.NOT_FOUND).end();
}