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