Amount confirmed for cancellation.

@param int $orderIndex
@return mixed|null
541214
public function getApprovedAmount($orderIndex = 0)
    {
        $paymentAmountInfo = $this->getPaymentAmountInfo($orderIndex);
        return array_key_exists('approvedAmount', $paymentAmountInfo) ? $paymentAmountInfo['approvedAmount'] : null;
    }
424288
public function getBankName($orderIndex = 0)
    {
        $bankInfo = $this->getBankInfo($orderIndex);
        return array_key_exists('bankName', $bankInfo) ? $bankInfo['bankName'] : null;
    }
604039
public function cancel($order): Collection
    {
        $this->payload['method'] = 'alipay.trade.cancel';
        $this->payload['biz_content'] = json_encode(is_array($order) ? $order : ['out_trade_no' => $order]);
        $this->payload['sign'] = Support::generateSign($this->payload);

        Events::dispatch(Events::METHOD_CALLED, new Events\MethodCalled('Alipay', 'Cancel', $this->gateway, $this->payload));

        return Support::requestApi($this->payload);
    }
1080198
public function getFieldByOrder($order)
    {
        foreach ($this->_fields as $field) {
            if ($field instanceof FieldInterface) {
                if ($field->getOrder() == $order) {
                    return $field;
                }
            }
        }

        return null;
    }
1121725
def orderExecuted(self, orderId):
        '''  '''
        if orderId == self.__stopOrderId:
            LOG.debug("smaStrategy stop order canceled %s" % orderId)
            # stop order executed
            self.__clearStopOrder()
480376
public function getDepositedAmount($orderIndex = 0)
    {
        $paymentAmountInfo = $this->getPaymentAmountInfo($orderIndex);
        return array_key_exists('depositedAmount', $paymentAmountInfo) ? $paymentAmountInfo['depositedAmount'] : null;
    }
102932
public function getBindingInfo($orderIndex = 0)
    {
        $orderStatuses = $this->getOrderStatuses();
        return array_key_exists('bindingInfo', $orderStatuses[$orderIndex])
            ? $orderStatuses[$orderIndex]['bindingInfo'] : [];
    }
732772
private function lastRealOrderId()
    {   
        $lastRealOrderId = $this->_objectManager->create('\Magento\Checkout\Model\Session')->getLastRealOrder()->getId();

        if (is_null($lastRealOrderId)) {
            throw new \Exception("There is no order associated with this session.");
        } 
        
        return $lastRealOrderId;
    }
135442
public static function isAllowedSum($order, $sumReturn)
	{
		$returnsBefore = PayReturn::whereOrderId($order->id)->get();
		$sumOldReturn = 0;
		foreach ($returnsBefore as $one) {
			$sumOldReturn += $one->sum;
		}
		$possibleReturn = $order->sum - $sumOldReturn;

		return $sumReturn <= $possibleReturn;
	}
531226
public function getActionCode($orderIndex = 0)
    {
        $orderStatuses = $this->getOrderStatuses();
        return array_key_exists('actionCode', $orderStatuses[$orderIndex])
            ? $orderStatuses[$orderIndex]['actionCode'] : null;
    }
1300950
public function getPaymentState($orderIndex = 0)
    {
        $paymentAmountInfo = $this->getPaymentAmountInfo($orderIndex);
        return array_key_exists('paymentState', $paymentAmountInfo) ? $paymentAmountInfo['paymentState'] : null;
    }
1361871
public function getAuthRefNum($orderIndex = 0)
    {
        $orderStatuses = $this->getOrderStatuses();
        return array_key_exists('authRefNum', $orderStatuses[$orderIndex])
            ? $orderStatuses[$orderIndex]['authRefNum'] : null;
    }
63834
public function offsetGet($index)
    {
        return isset($this->rows[$index]) ? $this->rows[$index] : null;
    }
810297
def cancel(self, orderID):
        """"""
        api = "order"
        postdict = {
            'orderID': orderID,
        }
        return self._curl_bitmex(api=api, postdict=postdict, verb="DELETE")
1324547
public function getCardAuthInfo($orderIndex = 0)
    {
        $orderStatuses = $this->getOrderStatuses();
        return array_key_exists('cardAuthInfo', $orderStatuses[$orderIndex])
            ? $orderStatuses[$orderIndex]['cardAuthInfo'] : [];
    }
783076
def cancel(self, order_id):
        """"""

        response = self.request(E.cancelSslCertRequest(
            E.id(order_id)
        ))

        return int(response.data.id)
668040
public function PaymentOrderCancel($paymentOrderId, $amount, $currency)
    {
        $request = new Request();
        $request->setMethod('POST');

        foreach (array('paymentOrderId', 'amount', 'currency') as $param) {
            if (null == $$param) {
                throw new InvalidArgumentException($param);
            }
        }

        $params = array(
            'PaymentOrderId' => $paymentOrderId,
            'CancelAmount'   => $amount,
            'Currency'       => $currency
        );

        $request->setContent(json_encode($params));

        return $this->doRequest('PaymentOrder/Cancel', $request)->getContentJson();
    }