You can display a message to a user when a transaction fails using this shortcode. DIrectorist will redirect user automatically to the page where this shortcode is used. However, you need to assign this page to the Transaction Failure Page option in the directorist page settings.
Transaction Failure Shortcode: [directorist_transaction_failure]
This shortcode does not have any attributes/parameters