Exemplo n.º 1
0
 /**
  * Tries to get an authorization or captures the money immediately for the given order if capturing the money
  * separately isn't supported or not configured by the shop owner.
  *
  * @param MShop_Order_Item_Interface $order Order invoice object
  * @param array $params Request parameter if available
  * @return MShop_Common_Item_Helper_Form_Default Form object with URL, action and parameters to redirect to
  * 	(e.g. to an external server of the payment provider or to a local success page)
  */
 public function process(MShop_Order_Item_Interface $order, array $params = array())
 {
     $order->setPaymentStatus(MShop_Order_Item_Abstract::PAY_AUTHORIZED);
     $this->_saveOrder($order);
     return parent::process($order, $params);
 }
Exemplo n.º 2
0
 /**
  * Checks the backend configuration attributes for validity.
  *
  * @param array $attributes Attributes added by the shop owner in the administraton interface
  * @return array An array with the attribute keys as key and an error message as values for all attributes that are
  * 	known by the provider but aren't valid
  */
 public function checkConfigBE(array $attributes)
 {
     $errors = parent::checkConfigBE($attributes);
     return array_merge($errors, $this->_checkConfig($this->_beConfig, $attributes));
 }
Exemplo n.º 3
0
 /**
  * Tries to get an authorization or captures the money immediately for the given order if capturing the money
  * separately isn't supported or not configured by the shop owner.
  *
  * @param MShop_Order_Item_Interface $order Order invoice object
  * @return MShop_Common_Item_Helper_Form_Default Form object with URL, action and parameters to redirect to
  * 	(e.g. to an external server of the payment provider or to a local success page)
  */
 public function process(MShop_Order_Item_Interface $order)
 {
     $order->setPaymentStatus(MShop_Order_Item_Abstract::PAY_PENDING);
     return parent::process($order);
 }