1

I want to add two different accounts for a single gateway . Depending upon Product_id or product_sku value it should use a corresponding account for payment.

How to do it? I have used the Drupal Commerce module.

closed as too broad by Mołot, Krishna Mohan, Yusef Mohamadi, Scott Joudry, Shawn Conn Dec 14 '15 at 18:40

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • I don't believe I've seen any gateway to allow this. On the other hand, why don't just add two instances? But most modules probably don't support it yet. – Mołot Dec 14 '15 at 7:30
  • how to add another instance ? How to get out it ? – Rajender Rajan Dec 14 '15 at 8:15
  • Hard to tell. My only experience is with PayU Poland which has an API totally independent and different from API of PayU India - not to mention other brands. Whatever I possibly could tell, would be next to useless to you :( That's why I posted general suggestion in comments, not an answer. – Mołot Dec 14 '15 at 8:18
  • okay .Wish someone have answer for this qustion – Rajender Rajan Dec 14 '15 at 8:45
  • This is a perfectly valid question... – nvahalik Dec 14 '15 at 22:48
2

Use multiple payment method rules for the same payment gateway and add conditions to them that check for the existence of particular products in the order's line items. How you do that is up to you and what your product catalog is like.

  • what would be the condition in RULE ??? – Rajender Rajan Dec 15 '15 at 4:40
  • I have find out the query string from url and then extract the "cid" from it then save it to an session variable as follows: $query = parse_url($_SERVER ['HTTP_REFERER']); $q=$query['query']; $exp=explode('=',$q); $_SESSION['cid']= $exp[1] ; Then i go to Payment Gateway Rule and add Condition "Execute php code" there I have put code as follows: if($_SESSION['cid']=='TN201501HP') { unset($_SESSION['cid']); return FALSE; } Remember Negate should remains unchecked. – Rajender Rajan Dec 15 '15 at 10:53
  • what would be the condition in RULE ??? well it depends, how many corresponding account payment are we talking about? 2 or 3? or lots? – No Sssweat Dec 16 '15 at 20:48

Not the answer you're looking for? Browse other questions tagged or ask your own question.