diff --git a/src/BusProNet/Model/BookingResponse.php b/src/BusProNet/Model/BookingResponse.php index 96836d2..a1179ee 100644 --- a/src/BusProNet/Model/BookingResponse.php +++ b/src/BusProNet/Model/BookingResponse.php @@ -28,6 +28,7 @@ class BookingResponse public readonly array $priceItems = [], public readonly ?float $totalPrice = null, public readonly ?PaymentTerms $paymentTerms = null, + public readonly ?string $message = null, ) { } diff --git a/src/BusProNet/XmlParser/BookingResponseParser.php b/src/BusProNet/XmlParser/BookingResponseParser.php index 3ab2d99..390d958 100644 --- a/src/BusProNet/XmlParser/BookingResponseParser.php +++ b/src/BusProNet/XmlParser/BookingResponseParser.php @@ -17,6 +17,7 @@ use Symfony\Component\DomCrawler\Crawler; * * möglich|erfolgt * 321530 + * ... * * * @@ -34,6 +35,7 @@ class BookingResponseParser extends AbstractParser $status = $node->filterXPath('//buchung')->text(); $transactionNumber = $this->getStringOrNullValue($node->filterXPath('//vorgang')); $totalPrice = $this->getFloatOrNullValue($node->filterXPath('//gesamtpreis')); + $message = $this->getStringOrNullValue($node->filterXPath('//hinweis')); $priceItems = $this->parsePriceItems($node); $paymentTerms = $this->parsePaymentTerms($node); @@ -43,7 +45,8 @@ class BookingResponseParser extends AbstractParser transactionNumber: $transactionNumber, priceItems: $priceItems, totalPrice: $totalPrice, - paymentTerms: $paymentTerms + paymentTerms: $paymentTerms, + message: $message, ); } diff --git a/templates/booking/create/step_3.html.twig b/templates/booking/create/step_3.html.twig index 9177685..9b23c2a 100644 --- a/templates/booking/create/step_3.html.twig +++ b/templates/booking/create/step_3.html.twig @@ -22,12 +22,12 @@ {% endblock %} {% block content %} - {% include '_partials/_flashes.html.twig' %} -

Neue Buchung

+ {% include '_partials/_flashes.html.twig' %} +

Zahlungsart

{{ form_start(form, {