Ejemplo n.º 1
0
 /**
  * Whether payment can be reviewed
  *
  * @param Mage_Sales_Model_Order_Payment $payment
  * @return bool
  */
 public function canReviewPayment(Mage_Payment_Model_Info $payment)
 {
     return parent::canReviewPayment($payment) && $this->_pro->canReviewPayment($payment);
 }
 /**
  * Whether this method can accept or deny payment
  *
  * @param Mage_Payment_Model_Info $payment
  *
  * @return bool
  */
 public function canReviewPayment(Mage_Payment_Model_Info $payment)
 {
     $fraud_type = $payment->getAdditionalInformation('fraud_type');
     $fraud_review = $payment->getAdditionalInformation('fraud_review');
     return parent::canReviewPayment($payment) && ($fraud_type == 'challenged' && $fraud_review != 'allowed');
 }