Canceling Navigation to the Payment Screen
Tags:
Starting from API V7Preview5, it became possible to prohibit navigation to the payment screen.
Before navigating to the payment screen, a notification is triggered
NavigatingToPaymentScreen.
Previously, it allowed changing the order via
IOperationService,
available in the notification arguments, for example, adding a payment.
It also allowed interaction with the user through
IViewManager,
showing various windows in SyrveFront.
Now, in addition to everything, there is the ability to cancel navigation to the payment screen by generating an OperationCanceledException in the corresponding subscriber.
This may be required in cases where additional conditions are checked, the failure of which may prevent navigation to the payment screen.