当前位置: 首页>>代码示例>>PHP>>正文


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怎么用?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);
 }
开发者ID:xiaoguizhidao,项目名称:blingjewelry-prod,代码行数:11,代码来源:Express.php

示例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;
 }
开发者ID:andrew-dwyer,项目名称:PINpayments,代码行数:13,代码来源:PaymentMethod.php

示例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;
 }
开发者ID:par-orillonsoft,项目名称:plugin_magento,代码行数:17,代码来源:Payment.php

示例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;
 }
开发者ID:hipay,项目名称:hipay-fullservice-sdk-magento1,代码行数:22,代码来源:Abstract.php


注:本文中的Mage_Payment_Model_Method_Abstract::denyPayment方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。