public function validate()
    {
        try {
            $httpResponse = $this->getClient()->request(
                'GET',
                sprintf("developer/%s/user/%s/receiptId/%s", $this->_developerSecret, $this->_userId, $this->_receiptId)
            );

            return new Response($httpResponse->getStatusCode(), json_decode($httpResponse->getBody(), true));
        } catch (RequestException $e) {
            if ($e->hasResponse()) {
                return new Response(
                    $e->getResponse()->getStatusCode(), json_decode($e->getResponse()->getBody(), true)
                );
            }
        }

        return new Response(Response::RESULT_INVALID_RECEIPT);
    }
public function validate()
    {
        try {
            $httpResponse = $this->getClient()->request(
                'GET',
                sprintf("developer/%s/user/%s/receiptId/%s", $this->_developerSecret, $this->_userId, $this->_receiptId)
            );

            return new Response($httpResponse->getStatusCode(), json_decode($httpResponse->getBody(), true));
        } catch (RequestException $e) {
            if ($e->hasResponse()) {
                return new Response(
                    $e->getResponse()->getStatusCode(), json_decode($e->getResponse()->getBody(), true)
                );
            }
        }

        return new Response(Response::RESULT_INVALID_RECEIPT);
    }
public function validate ( ) { try { $ httpResponse = $ this -> getClient ( ) -> request ( 'GET' , sprintf ( "developer/%s/user/%s/receiptId/%s" , $ this -> _developerSecret , $ this -> _userId , $ this -> _receiptId ) ) ; return new Response ( $ httpResponse -> getStatusCode ( ) , json_decode ( $ httpResponse -> getBody ( ) , true ) ) ; } catch ( RequestException $ e ) { if ( $ e -> hasResponse ( ) ) { return new Response ( $ e -> getResponse ( ) -> getStatusCode ( ) , json_decode ( $ e -> getResponse ( ) -> getBody ( ) , true ) ) ; } } return new Response ( Response :: RESULT_INVALID_RECEIPT ) ; }
validate the receipt data.

@throws RunTimeException
@throws \GuzzleHttp\Exception\GuzzleException

@return Response
validate the receipt data .