public function canVoid($member = null)
    {
        if (!($this->Status == 'Authorized' && GatewayInfo::allowVoid($this->Gateway))) {
            return false;
        }

        $extended = $this->extendedCan('canVoid', $member);
        if ($extended !== null) {
            return $extended;
        }

        return Permission::check('VOID_PAYMENTS', 'any', $member);
    }
public function canVoid($member = null)
    {
        if (!($this->Status == 'Authorized' && GatewayInfo::allowVoid($this->Gateway))) {
            return false;
        }

        $extended = $this->extendedCan('canVoid', $member);
        if ($extended !== null) {
            return $extended;
        }

        return Permission::check('VOID_PAYMENTS', 'any', $member);
    }
public function canVoid ( $ member = null ) { if ( ! ( $ this -> Status == 'Authorized' && GatewayInfo :: allowVoid ( $ this -> Gateway ) ) ) { return false ; } $ extended = $ this -> extendedCan ( 'canVoid' , $ member ) ; if ( $ extended !== null ) { return $ extended ; } return Permission :: check ( 'VOID_PAYMENTS' , 'any' , $ member ) ; }
Whether or not this payment can be voided
@param Member|int $member the member/memberID to check permissions on
@return bool
Whether or not this payment can be voided