Discussion:
Payment Manager - add percentage to approval amount?
(too old to reply)
j***@sbcglobal.net
2006-11-27 21:38:12 UTC
Permalink
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?
Robert Brown
2006-11-28 04:10:44 UTC
Permalink
I don't believe what you ask is LEGAL in a court of law. I know it
isn't much help. Why aren't you adding in the 2% up front when
calculating the total cost of the order?

R
Post by j***@sbcglobal.net
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.
<Parameter name="PAYMENTAMOUNT"><CharacterText>{approval_amount}</CharacterText></Parameter>
<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?
j***@sbcglobal.net
2006-11-28 13:35:37 UTC
Permalink
We are not trying to settle (debit) the additional 2%, just approve that amount (make sure funds are available). I don't know if it is legal or not, but the customer does it now with their current back-end system.

I can go in manually to the Payment Manager UI and approve an amount different from the order amount, so I don't see why this cannot be done. I tried creating an ExtensionValue class for the cashier profile, and I got it to sort of work. I added 2% to the paymentamount which is supposedly the amount for approval, but then the pay command throws an error because the amount does not match the order total.
b***@gmail.com
2006-11-29 21:28:10 UTC
Permalink
Post by j***@sbcglobal.net
We are not trying to settle (debit) the additional 2%, just approve that amount (make sure funds are available). I don't know if it is legal or not, but the customer does it now with their current back-end system.
I can go in manually to the Payment Manager UI and approve an amount different from the order amount, so I don't see why this cannot be done. I tried creating an ExtensionValue class for the cashier profile, and I got it to sort of work. I added 2% to the paymentamount which is supposedly the amount for approval, but then the pay command throws an error because the amount does not match the order total.
You can do that easily for back ordered items. Just set the percentage
increase in STORE.BOPMPADFACTOR and the increased amount is
automatically approved.

For regular items you might have to customize DoPaymentPMCmdImpl and
set AMOUNT and PAYMENTAMOUNT using something similar.

Continue reading on narkive:
Loading...