IPaymentInfoCalculator.CalculateFromCarrier changes the ReferenceType of a PaymentInfoRowCarrier

We are currently trying to add a customized giftcards in our Payments and we are adding it as a PaymentInfoRowCarrier to our existing PaymentInfoCarrier.

What confuses me is that after setting up the payment rows, every time the OrderCarrier is passed to IPaymentInfoCalculator.CalculateFromCarrier, the function changes the row from PaymentInfoRowType.ExternalReference to PaymentInfoRowType.RoundingOffAdjustment. This kind of messes up our calculations.

My questions are, why does the CalculateFromCarrier changes ExternalReference rows to RoundingOffAdjustment?
Are there ways that we can prevent this?

Please advise. Thank you in advance.

Litium version: [ 7.6.1]

Yes the method rebuilds the PaymentInfoRows for the entire order.
Any possibility to change the PaymentInfoRowType afterwards?

Hi,

Thanks for the reply.
Yes, currently what I did to resolve this is to remove the RoundingOffAdjustment and replace it again with the custom ExternalReference payment that we have.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.