Add debugging details (#2585)

pull/2674/head
Hariom Balhara 2022-04-26 16:45:57 +05:30 committed by Omar López
parent 1421b9c0af
commit 05acd26efe
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ async function handlePaymentSuccess(event: Stripe.Event) {
}, },
}); });
if (!payment?.bookingId) { if (!payment?.bookingId) {
console.log(JSON.stringify(payment)); console.log(JSON.stringify(paymentIntent), JSON.stringify(payment));
} }
if (!payment?.bookingId) throw new Error("Payment not found"); if (!payment?.bookingId) throw new Error("Payment not found");