feat: improved promotional and purchase vouchers
This commit is contained in:
@@ -76,17 +76,22 @@ class Step4Controller extends AbstractController
|
||||
return $this->handleApiError(
|
||||
'Booking creation failed - API notification',
|
||||
['message' => $bookingResponse->message],
|
||||
$bookingResponse->message,
|
||||
$bookingResponse->message ?? 'Ein Fehler ist aufgetreten. Bitte versuchen Sie es erneut.',
|
||||
$bookingCreateDto,
|
||||
$form
|
||||
);
|
||||
}
|
||||
|
||||
if (false === $bookingResponse->isBookingSuccessful()) {
|
||||
$errorMessage = 'Buchung konnte nicht erstellt werden.';
|
||||
if (null !== $bookingResponse->message && '' !== trim($bookingResponse->message)) {
|
||||
$errorMessage .= ' '.$bookingResponse->message;
|
||||
}
|
||||
|
||||
return $this->handleApiError(
|
||||
'Booking creation unsuccessful',
|
||||
['status' => $bookingResponse->status],
|
||||
'Buchung konnte nicht erstellt werden.',
|
||||
['status' => $bookingResponse->status, 'message' => $bookingResponse->message],
|
||||
$errorMessage,
|
||||
$bookingCreateDto,
|
||||
$form
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user