Show rollback exception error message from a service in a transition

Hi community,

I created a public one page checkout payment screen where the initial transition is called from the included FTL file which in turn calls a service which has some result parameters which are displayed back in the FTL file. This is working fine, however if there is an rollback exception error in the called service i want to show the rollback message again on top of the FTL file.

Any suggestions how to do this?

1 Like

In the mean time i found it myself…as you can see in the checkoutOnePage.xml screen at line 43 I inserted

ec.message.hasError()? ec.message.getErrorsString() :

which will show the rollback message if available…

the displayed page:

1 Like

That looks great!

I’m glad you figured it out.