private function _waitUntilRefundProcessingIsCompleted($amazonRefundId)
    {
        // Check for the presence of the ipn notification
        $this->waitForNotificationToBeProcessedBeforeContinuing(
            $amazonRefundId,
            "RefundNotification"
        );
        // Notification is present, go and get the full
        // information for this notification
        $response = $this->callStepAndCheckForException(
            'getRefundDetails', array($amazonRefundId)
        );
        validateThatRefundIsCompleted($response->getGetRefundDetailsResult()->getRefundDetails());
        echo $this->printResponseToWebpage(
            "printGetRefundDetailsResponse",
            array($response)
        );
     
    }