本文整理汇总了PHP中Mage_Payment_Model_Method_Abstract::denyPayment方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Payment_Model_Method_Abstract::denyPayment方法的具体用法?PHP Mage_Payment_Model_Method_Abstract::denyPayment怎么用?PHP Mage_Payment_Model_Method_Abstract::denyPayment使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Payment_Model_Method_Abstract
的用法示例。
在下文中一共展示了Mage_Payment_Model_Method_Abstract::denyPayment方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: denyPayment
/**
* Attempt to deny a pending payment
*
* @param Mage_Sales_Model_Order_Payment $payment
* @return bool
*/
public function denyPayment(Mage_Payment_Model_Info $payment)
{
parent::denyPayment($payment);
return $this->_pro->reviewPayment($payment, Mage_Paypal_Model_Pro::PAYMENT_REVIEW_DENY);
}
示例2: denyPayment
/**
*
* Cancels an order under review. No action is taken on the actual PinPayments transaction, as any PinPayments charges
* that are flagged as fraudulent are immediately denied. This method simply cancels the Magento order.
*
* @param Mage_Payment_Model_Info $payment
* @return bool
*/
public function denyPayment(Mage_Payment_Model_Info $payment)
{
parent::denyPayment($payment);
return true;
}
示例3: denyPayment
/**
*
* @param Mage_Payment_Model_Info $payment
* @return bool
*/
public function denyPayment(Mage_Payment_Model_Info $payment)
{
parent::denyPayment($payment);
$sessionId = $payment->getLastTransId();
if (empty($sessionId)) {
return false;
}
if (!$this->orderStatusUpdateRequest(self::ORDER_V2_REJECTED, $sessionId)) {
return false;
}
return true;
}
示例4: denyPayment
public function denyPayment(Mage_Payment_Model_Info $payment)
{
/*@var $payment Mage_Sales_Model_Order_Payment */
parent::denyPayment($payment);
$transactionId = $payment->getLastTransId();
$amount = $payment->getAmountAuthorized();
$transactionId = $payment->getLastTransId();
$gatewayParams = array('operation' => self::OPERATION_MAINTENANCE_DENY_CHALLENGE, 'amount' => $amount);
$this->_debug($gatewayParams);
/* @var $request Allopass_Hipay_Model_Api_Request */
$request = Mage::getModel('hipay/api_request', array($this));
$uri = Allopass_Hipay_Model_Api_Request::GATEWAY_ACTION_MAINTENANCE . $transactionId;
$gatewayResponse = $request->gatewayRequest($uri, $gatewayParams, $payment->getOrder()->getStoreId());
$this->_debug($gatewayResponse->debug());
$receiver = Mage::getModel('customer/customer')->load($payment->getOrder()->getCustomerId());
$message = Mage::helper('hipay')->__('Your transaction has been refused.');
$email_key = "fraud_payment_deny";
if ($this->canSendFraudEmail($payment->getOrder()->getStoreId())) {
$this->getHelper()->sendFraudPaymentEmail($receiver, $payment->getOrder(), $message, $email_key);
}
return true;
}