Add debugging details (#2585)

This commit is contained in:
Hariom Balhara
2022-04-26 11:15:57 +00:00
committed by GitHub
parent 6d5db1cb3a
commit 5336bf3fe2
@@ -33,7 +33,7 @@ async function handlePaymentSuccess(event: Stripe.Event) {
},
});
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");