Here some logic is present to prevent payment handling of zero-amount orders:
|
function handlePayments(order) { |
|
if (order.totalNetPrice === 0.0) { |
|
return {}; |
|
} |
But since
order.totalNetPrice is of type
dw.value.Money this comparison (using
=== will always be
false. Instead this comparison should be done:
order.totalNetPrice.value === 0.0.
Here some logic is present to prevent payment handling of zero-amount orders:
adyen-salesforce-commerce-cloud/src/cartridges/int_adyen_SFRA/cartridge/adyen/utils/authorizationHelper.js
Lines 11 to 14 in ee5dd14
But since
order.totalNetPriceis of typedw.value.Moneythis comparison (using===will always befalse. Instead this comparison should be done:order.totalNetPrice.value === 0.0.