Set Payment Gateway based on amount

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
rewardchain
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 23
Joined: Wed Mar 24, 2010 2:42 pm

Set Payment Gateway based on amount

Post by rewardchain » Mon May 03, 2010 10:34 pm

I am looking to have two payment gateways each having Visa, Mastercard, etc. What I would like is a condition where if the dollar amount was below a certain amount, like $12.00, then use Gateway 1. Else, anything above use Gateway 2. I have been looking at editing OnePageCheckout, but I am not sure this is the correct place to start.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Set Payment Gateway based on amount

Post by mazhar » Tue May 04, 2010 6:28 am

Have a look at this thread, it may provide some help
viewtopic.php?f=42&t=10712

rewardchain
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 23
Joined: Wed Mar 24, 2010 2:42 pm

Re: Set Payment Gateway based on amount

Post by rewardchain » Tue May 04, 2010 9:17 am

Thanks, I will play around with it to see if I can get the conditions to work. What if I need to use two of the same gateway types? Able doesn't do this from the interface. Can I just insert this into the database and then use the gateway id accordingly?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Set Payment Gateway based on amount

Post by mazhar » Tue May 04, 2010 9:27 am

What would be the gateway for which you want to use two instances?

rewardchain
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 23
Joined: Wed Mar 24, 2010 2:42 pm

Re: Set Payment Gateway based on amount

Post by rewardchain » Tue May 04, 2010 3:40 pm

Paypal. One for regular transactions and one for their Micropayments service (under $12.00). For some reason they make you have two accounts so that is why I need to determine the order total and utilize one gateway or the other.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Set Payment Gateway based on amount

Post by mazhar » Wed May 05, 2010 6:50 am

Well I believe running two instances of same payment gateway would require that gateway dlls and code classes in the dll should have some different name. This will require a change in back end code to produce a custom DLL. Otherwise I don't think so there is any other way to configure two instances on same store.

rewardchain
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 23
Joined: Wed Mar 24, 2010 2:42 pm

Re: Set Payment Gateway based on amount

Post by rewardchain » Wed May 05, 2010 7:04 am

Can I get a quote for that?

Post Reply