j***@sbcglobal.net
2006-11-27 21:38:12 UTC
I want to make the payment manager approve an amount greater than the actual amount of the order (we do an approval first, then settle but in between the shipping charges could change, etc).
I would like to change the profile so that the amount used for approval is 2% greater than the actual order amount.
In the profile XML file there is a line:
<Parameter name="PAYMENTAMOUNT"><CharacterText>{approval_amount}</CharacterText></Parameter>
I am having a hard time finding a guide that talks about how to make changes in the profile, but what I'd like to do is just do the math inside the XML if possible. Something like:
<Parameter name="PAYMENTAMOUNT"><CharacterText>{approval_amount * 1.02}</CharacterText></Parameter>
I'm not sure of the syntax for the file so I don't know if this is possible or not. Does anyone know if this is doable, and if so, how to do it?
I would like to change the profile so that the amount used for approval is 2% greater than the actual order amount.
In the profile XML file there is a line:
<Parameter name="PAYMENTAMOUNT"><CharacterText>{approval_amount}</CharacterText></Parameter>
I am having a hard time finding a guide that talks about how to make changes in the profile, but what I'd like to do is just do the math inside the XML if possible. Something like:
<Parameter name="PAYMENTAMOUNT"><CharacterText>{approval_amount * 1.02}</CharacterText></Parameter>
I'm not sure of the syntax for the file so I don't know if this is possible or not. Does anyone know if this is doable, and if so, how to do it?