External discounts and Incompatibilities
External discounts
The external discounts have to be informed as they a failure point if they are not correctly handled. To ensure the integrity of the information they have to be specified in the checkout requests, as follows:
- Line external discounts have to be already netted, as already substracted from the line amount, and the array is informative for incompatibilities.
- Order external discounts have to be included with the code and with the discountAmount, the array is what is used to inform and substract by Wapping the amount.
Incompatibilities
Incompatibilities
In Wapping, services can be configured to be incompatible, meaning that if one service is applied, certain other services cannot be used. This information is included in the response within the CheckoutSession.Detail.IncompatibleServices object, which lists the services that are unavailable because the current service is applied.
This system can also be used with external discounts, when they are defined and the code correctly informed, in the platform the configuration can be made.
