src/icepay_api_webservice.php
public function cancelRefund($refundID, $paymentID)
    {
        $obj = new stdClass();

        // Must be in specific order for checksum --
        $obj->Secret = $this->getSecretCode();
        $obj->MerchantID = $this->getMerchantID();
        $obj->Timestamp = $this->getTimeStamp();
        $obj->RefundID = $refundID;
        $obj->PaymentID = $paymentID;
        // -----------------------------------------  
        // Generate Checksum
        $obj->Checksum = $this->generateChecksum($obj);

        // Ask for cancelRefunt and get response
        $result = $this->client->CancelRefund($obj);
        $result = $result->CancelRefundResult;

        $obj->Timestamp = $result->Timestamp;
        $obj->Success = $result->Success;

        // Unset properties for new Checksum
        unset($obj->RefundID, $obj->PaymentID, $obj->Checksum);

        // Verify response data by making a new Checksum
        $Checksum = $this->generateChecksum($obj);

        // Compare Checksums
        if ($result->Checksum != $Checksum)
            throw new Exception('Data could not be verified');

        return (array) $result;
    }
public function cancelRefund($refundID, $paymentID)
    {
        $obj = new stdClass();

        // Must be in specific order for checksum --
        $obj->Secret = $this->getSecretCode();
        $obj->MerchantID = $this->getMerchantID();
        $obj->Timestamp = $this->getTimeStamp();
        $obj->RefundID = $refundID;
        $obj->PaymentID = $paymentID;
        // -----------------------------------------  
        // Generate Checksum
        $obj->Checksum = $this->generateChecksum($obj);

        // Ask for cancelRefunt and get response
        $result = $this->client->CancelRefund($obj);
        $result = $result->CancelRefundResult;

        $obj->Timestamp = $result->Timestamp;
        $obj->Success = $result->Success;

        // Unset properties for new Checksum
        unset($obj->RefundID, $obj->PaymentID, $obj->Checksum);

        // Verify response data by making a new Checksum
        $Checksum = $this->generateChecksum($obj);

        // Compare Checksums
        if ($result->Checksum != $Checksum)
            throw new Exception('Data could not be verified');

        return (array) $result;
    }
public function cancelRefund ( $ refundID , $ paymentID ) { $ obj = new stdClass ( ) ; // Must be in specific order for checksum -- $ obj -> Secret = $ this -> getSecretCode ( ) ; $ obj -> MerchantID = $ this -> getMerchantID ( ) ; $ obj -> Timestamp = $ this -> getTimeStamp ( ) ; $ obj -> RefundID = $ refundID ; $ obj -> PaymentID = $ paymentID ; // -----------------------------------------   // Generate Checksum $ obj -> Checksum = $ this -> generateChecksum ( $ obj ) ; // Ask for cancelRefunt and get response $ result = $ this -> client -> CancelRefund ( $ obj ) ; $ result = $ result -> CancelRefundResult ; $ obj -> Timestamp = $ result -> Timestamp ; $ obj -> Success = $ result -> Success ; // Unset properties for new Checksum unset ( $ obj -> RefundID , $ obj -> PaymentID , $ obj -> Checksum ) ; // Verify response data by making a new Checksum $ Checksum = $ this -> generateChecksum ( $ obj ) ; // Compare Checksums if ( $ result -> Checksum != $ Checksum ) throw new Exception ( 'Data could not be verified' ) ; return ( array ) $ result ; }
The CancelRefund web method allows you to cancel a refund request if it has not already been processed.

@since version 2.1.0
@access public
@param int $refundID
@param int $paymentID
The CancelRefund web method allows you to cancel a refund request if it has not already been processed .