コード例 #1
0
ファイル: Payment.php プロジェクト: jonathanweb/ebanx-magento
 /**
  * Voids an order
  * @param  Varien_Object $payment
  * @return Mage_Payment_Model_Method_Abstract
  */
 public function void(Varien_Object $payment)
 {
     parent::void($payment);
     $hash = $payment->getData('ebanx_hash');
     Mage::log('Void order ' . $hash);
     $response = \Ebanx\Ebanx::doRefundOrCancel(array('hash' => $hash, 'description' => 'The order has been cancelled.'));
     return $this;
 }