Skip to content

Commit

Permalink
fix: fixed stripe controller in cloud function
Browse files Browse the repository at this point in the history
  • Loading branch information
JanssenBrm committed Aug 20, 2023
1 parent dd6c030 commit 75da1ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/src/services/stripe.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const stripe = require('stripe')(process.env.STRIPE_KEY);

export const verifyEvent = (req: any) => {
const sig = req.headers['stripe-signature'];
return stripe.webhooks.constructEvent(req.rawBody, sig, process.env.STRIPE_SECRET);
return stripe.webhooks.constructEvent(req.rawBody, sig, process.env.STRIPE_WEBHOOK_SECRET);
};

export const createOrderObject = async (session: any): Promise<Order> => {
Expand Down

0 comments on commit 75da1ee

Please sign in to comment.