lib/AktiveMerchant/Billing/Gateways/PaypalExpress.php
public function void($authorization, $options = array())
    {
        $this->post = array();

        $params = array(
            'METHOD'            => 'DoVoid',
            'AUTHORIZATIONID'   => $authorization
        );

        if (isset($options['note'])) {
            $params['NOTE'] = $options['note'];
        }

        if (isset($options['message'])) {
            $params['MSGSUBID'] = $options['message'];
        }

        $this->post = array_merge(
            $this->post,
            $params
        );

        return $this->commit('DoVoid');
    }
public function void($authorization, $options = array())
    {
        $this->post = array();

        $params = array(
            'METHOD'            => 'DoVoid',
            'AUTHORIZATIONID'   => $authorization
        );

        if (isset($options['note'])) {
            $params['NOTE'] = $options['note'];
        }

        if (isset($options['message'])) {
            $params['MSGSUBID'] = $options['message'];
        }

        $this->post = array_merge(
            $this->post,
            $params
        );

        return $this->commit('DoVoid');
    }
public function void ( $ authorization , $ options = array ( ) ) { $ this -> post = array ( ) ; $ params = array ( 'METHOD' => 'DoVoid' , 'AUTHORIZATIONID' => $ authorization ) ; if ( isset ( $ options [ 'note' ] ) ) { $ params [ 'NOTE' ] = $ options [ 'note' ] ; } if ( isset ( $ options [ 'message' ] ) ) { $ params [ 'MSGSUBID' ] = $ options [ 'message' ] ; } $ this -> post = array_merge ( $ this -> post , $ params ) ; return $ this -> commit ( 'DoVoid' ) ; }
Void an authorization.

Available option fields are:
- note: (Optional) Informational note about this void that is displayed
to the buyer in email and in their transaction history.
Character length and limitations: 255 single-byte characters

- message: (Optional) A message ID used for idempotence to uniquely
identify a message. This ID can later be used to request the
latest results for a previous request without generating a
new request. Examples of this include requests due to timeouts
or errors during the original request.
Character length and limitations: 38 single-byte characters

{@inheritdoc }
Void an authorization .