From 7b7fe113a8e9b779367eedfbf9f4af65d24b59a0 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 11 Jul 2023 10:43:35 +1000 Subject: [PATCH] Update 'booking.stripe.inc' --- booking.stripe.inc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/booking.stripe.inc b/booking.stripe.inc index 3d2d9a1..72b730b 100644 --- a/booking.stripe.inc +++ b/booking.stripe.inc @@ -224,20 +224,23 @@ function booking_stripe_validate_form_payment($form, &$form_state) { catch(\Stripe\Error\Card $e) { $e_json = $e->getJsonBody(); $error = $e_json['error']; - watchdog('booking', $e->getMessage()); + watchdog('booking', "
Detected exception processing Stripe payment (!message)\n@info
", + array('!message' => $e->getMessage(), '@info' => print_r( $e->getTrace() ))); drupal_set_message($e->getMessage(), 'error'); } catch (\Stripe\Error\ApiConnection $e) { - watchdog('booking', $e->getMessage()); + watchdog('booking', "
Detected exception processing Stripe payment (!message)\n@info
", + array('!message' => $e->getMessage(), '@info' => print_r( $e->getTrace() ))); drupal_set_message($e->getMessage(), 'error'); } catch (\Stripe\Error\Api $e) { - watchdog('booking', $e->getMessage()); + watchdog('booking', "
Detected exception processing Stripe payment (!message)\n@info
", + array('!message' => $e->getMessage(), '@info' => print_r( $e->getTrace() ))); drupal_set_message($e->getMessage(), 'error'); } catch (\Stripe\Exception\CardException $e) { - watchdog('booking', "
Detected exception processing Stripe payment (!message)\n!error
", - array('!message' => $e->getMessage(), '!error' => print_r($e->getTrace()))); + watchdog('booking', "
Detected exception processing Stripe payment (!message)\n@info
", + array('!message' => $e->getMessage(), '@info' => print_r( $e->getTrace() ))); drupal_set_message($e->getMessage(), 'error'); } }