public function doWebPayment($requestWebPayment)
    {
        $this->response = parent::doWebPayment($this->entity, $requestWebPayment);

        /**
         * Checks the state of the platform integration.
         */
        if (Exception\IntegrationState::check($this->response->requestState)) {
            throw new Exception\IntegrationState($this->response->requestState);
        }

        /**
         * Se a resposta retornar algum erro previsto.
         */
        if ($this->response->requestState->state == 0) {
            throw new Exception\IntegrationResponse(
                $this->response->requestState->message,
                $this->response->requestState->code
            );
        }

        return $this->response;
    }
public function doWebPayment($requestWebPayment)
    {
        $this->response = parent::doWebPayment($this->entity, $requestWebPayment);

        /**
         * Checks the state of the platform integration.
         */
        if (Exception\IntegrationState::check($this->response->requestState)) {
            throw new Exception\IntegrationState($this->response->requestState);
        }

        /**
         * Se a resposta retornar algum erro previsto.
         */
        if ($this->response->requestState->state == 0) {
            throw new Exception\IntegrationResponse(
                $this->response->requestState->message,
                $this->response->requestState->code
            );
        }

        return $this->response;
    }
public function doWebPayment ( $ requestWebPayment ) { $ this -> response = parent :: doWebPayment ( $ this -> entity , $ requestWebPayment ) ; /**
         * Checks the state of the platform integration.
         */ if ( Exception \ IntegrationState :: check ( $ this -> response -> requestState ) ) { throw new Exception \ IntegrationState ( $ this -> response -> requestState ) ; } /**
         * Se a resposta retornar algum erro previsto.
         */ if ( $ this -> response -> requestState -> state == 0 ) { throw new Exception \ IntegrationResponse ( $ this -> response -> requestState -> message , $ this -> response -> requestState -> code ) ; } return $ this -> response ; }
Calls PayPay Webservice to request a payment via PayPay redirect.

@param  RequestCreditCardPayment $requestWebPayment
@return ResponseCreditCardPayment The webservice response containing the relevant payment data.
Calls PayPay Webservice to request a payment via PayPay redirect .