Syrve POS API SDK

Notifications about removing external payment from an order have been added to API V8

When trying to delete an external payment, the method is called OnPaymentDeleting on the corresponding IPaymentProcessor.

Some payment systems require payment to be made in an external system before the order is paid in Syrve, so there is a period of time when the payment has already been made in the external system, but not yet in Syrve. Previously, the user could delete such a payment without a trace, and since Syrve considered this payment unsettled, it was deleted without cancellation, which led to an erroneous extra transaction in the external system.

Now the payment processor in the OnPaymentDeleting method can, at its discretion:

For now, this only works if you try to remove it from the payment screen. Calling the OnPaymentDeleting method when deleting a payment via the API (DeleteExternalPaymentItem) will be implemented later.