-1

I'm working on implementing a new payment methods for an e-commerce system (in the context of Magento). However, I don't fully understand what differentiate a gateway and non-gateway payment methods.

In magento, every payment method will have to inherit Mage_Payment_Model_Method_Abstract. And that class has a variable called $_isGateway. The only cases where this variable is true is only for Mage_Paypal_Model_Direct and Mage_Paypal_Model_Payflowpro.

The way I understand a gateway is any payment via 3rd party and payment is not transfered directly to the merchant, is it correct? How do I know if my payment methods is a gateway or non-gateway? (or in the context of Magento)

Update Possible Answer

It seems that $_isGateway in Magento does nothing. Here's the search in the source code

Yeo
  • 11,416
  • 6
  • 63
  • 90
  • I am also trying to understand how this `$_isGateway` links with the concept of [*authorize* and *capture*](http://stackoverflow.com/questions/5366551/magento-payment-flow). – Yeo May 27 '15 at 15:54
  • Someone know Magento please. If you think it's too broad, mind elaborate. Because the question seems to be very simple. Is it gateway or not? – Yeo May 27 '15 at 16:55

1 Answers1

0

In the context of Magento, $_isGateway is used in multiple area. Here are the list of them:

The source code is self explanatory (the function name is very clear), thus also explained how a gateway differs with the non gateway. Such as the invoice, the API payment, etc...

Yeo
  • 11,416
  • 6
  • 63
  • 90