[PostFinance] How to diagnose «An error has occurred; please try again later»?

The full message:

An error has occurred; please try again later. If you are the owner or the integrator of this website, please log into the PostFinance back office to see the details of the error.

You can diagnose such failure by means of the PostFinance’s error log.

Unfortunately, PostFinance does not send a webhook notification about such failures, so check your PostFinance error log regularly!