/** * Constructor * * @param array $options */ public function __construct(array $options = null) { parent::__construct($options); if (null === $this->getGatewayMethod()) { $this->setGatewayMethod('POST'); } }
public function __construct(array $options = null) { parent::__construct($options); if (null === $this->getGatewayUrl()) { //https://test.authorize.net/gateway/transact.dll $this->setGatewayUrl('https://secure.authorize.net/gateway/transact.dll'); } if (null === $this->getGatewayVersion()) { $this->setGatewayVersion('3.0'); } }
public function process(Engine_Payment_Gateway $gateway) { if (null !== $this->_driver && $this->_driver !== $gateway->getDriver()) { throw new Engine_Payment_Exception('Already processed, cannot process with a different driver'); } $this->_driver = $gateway->getDriver(); $data = $gateway->processIpn($this); $this->_isProcessed = true; if (is_array($data)) { $this->_isValid = true; $this->_data = $data; } else { $this->_isValid = false; $this->_data = null; } return $this; }