Add debugging details (#2585)
This commit is contained in:
committed by
Omar López
parent
1421b9c0af
commit
05acd26efe
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user