Welcome to Vortx Community Forum, where you can ask questions and receive answers from the staff at Vortx and other members of the community.

If you had a user account on our previous forums website, you will need to register a new account here.

Learn more about...


Can I modify the source to change transactionMode to Auth only if total price is over a certain amount?

we are using PayJunction as our gateway. For the large majority of our transactions we want the transactionmode set to AuthCapture. But for the few large ticket items we sell, we would prefer to only authorize the transaction until we verify the purchase. 

I have tried modifying gateway.cs in the gateways.dll at the top of the MakeOrder function:

            if (OrderTotal > 1000)
                TransactionMode = "AUTH";
But so far, nothing changes, all transactions are set to AuthCapture.
Can this be achieved via soure code while leaving the TransactionMode appconfig set to AuthCapture?
Thank you for any light you can shed on this matter.
asked Mar 25, 2018 in MultiStore by brownroof (205 points)

2 Answers

0 votes
All kinds of order state is changed throughout the course of the Gateway.MakeOrder method, and even a little bit afterwards when customers hit the order confirmation page.  A one-liner at the top of that method isn't going to catch all the cases where an order can be set to captured.  You'll have to debug through to find where it's happening in your case (that'll vary based on site config, gateway, etc) and put in your extra check there.  Keep in mind that there can be multiple places, order processing is complicated.
answered Mar 26, 2018 by Vortx ScottS (13,500 points)
ok, kind of what I figured. I was hoping it was going to be easy but I will dive down into the details and get this figured out. Thank you.
0 votes
Let me know if you would like this source code modification done/quoted?  jsimacek @ compunix.us

Thank you,

Compunix, LLC (Phoenix, AZ)
AspDotNetStorefront Development Partner and Reseller since 2005
 AspDotNetStorefront add-ons and plugins : http://www.ecommercecartmods.com
  * Searching Filtering, Single Signons, Reviews Ratings, Reports, Integrations

 Complete Automotive Solution : http://www.autopartsshoppingcart.com
  * Auto + Aftermarket Parts solution

 Unlimited Custom Development : http://www.compunix.us/t-unlimited-custom-development.aspx
  * Unlimited with Quick turn-arounds!
answered Mar 26, 2018 by jsimacek (6,845 points)