Update 'booking.stripe.inc'
This commit is contained in:
@@ -236,10 +236,8 @@ function booking_stripe_validate_form_payment($form, &$form_state) {
|
|||||||
drupal_set_message($e->getMessage(), 'error');
|
drupal_set_message($e->getMessage(), 'error');
|
||||||
}
|
}
|
||||||
catch (\Stripe\Exception\CardException $e) {
|
catch (\Stripe\Exception\CardException $e) {
|
||||||
$e_json = $e->getJsonBody();
|
|
||||||
$error = $e_json['error'];
|
|
||||||
watchdog('booking', "<pre>Detected exception processing Stripe payment (!message)\n!error</pre>",
|
watchdog('booking', "<pre>Detected exception processing Stripe payment (!message)\n!error</pre>",
|
||||||
array('!message' => $e->getMessage(), '!error' => print_r($e_json)));
|
array('!message' => $e->getMessage(), '!error' => print_r($e->getTrace())));
|
||||||
drupal_set_message($e->getMessage(), 'error');
|
drupal_set_message($e->getMessage(), 'error');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user