Skip to content

Commit

Permalink
req body
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcholmsky committed Jan 4, 2024
1 parent d3a6006 commit ea19fcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ app.post("/create-payment-intent", async (req, res) => {
app.post('/webhook', express.raw({type: 'application/json'}), (request, response) => {
console.log('Webhook called');
console.log('Type of request.body:', typeof request.body);
console.log('Content of request.body:', request.body);

let event;
console.log("webhook BD", braceletDetails)

Expand Down Expand Up @@ -135,8 +137,6 @@ app.post('/webhook', express.raw({type: 'application/json'}), (request, response
await writeGoogleSheet(googleSheetClient, orderData);
}

app.use(express.json());

// Function to retrieve the product price from Stripe using the product ID
const getProductPrice = async (productId) => {
try {
Expand Down

0 comments on commit ea19fcd

Please sign in to comment.