try again

This commit is contained in:
2023-07-11 10:33:21 +10:00
parent 5c4f9029eb
commit 52cda1cb78

View File

@@ -237,8 +237,9 @@ function booking_stripe_validate_form_payment($form, &$form_state) {
}
catch (\Stripe\Exception\CardException $e) {
$e_json = $e->getJsonBody();
$error = $e_json['error'];
watchdog('booking', "Detected exception processing Stripe payment : !message . !error",
array('!message' => $e->getMessage(), '!error' => $e_json['error']));
array('!message' => $e->getMessage(), '!error' => $error));
drupal_set_message($e->getMessage(), 'error');
}
}