Add debugging details (#2585)

pull/2593/head^2
Hariom Balhara 2022-04-26 16:45:57 +05:30 committed by GitHub
parent 6d5db1cb3a
commit 5336bf3fe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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");