public function checkWebPayment($token, $transactionId)
    {
        $requestPayment = new Structure\RequestPaymentDetails($token, $transactionId);

        $this->response = parent::checkWebPayment($this->entity, $requestPayment);

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

        if ($this->response->requestState->state == 0) {
            throw new Exception\IntegrationResponse(
                $this->response->requestState->message,
                $this->response->requestState->code
            );
        }

        return $this->response;
    }
public function checkWebPayment($token, $transactionId)
    {
        $requestPayment = new Structure\RequestPaymentDetails($token, $transactionId);

        $this->response = parent::checkWebPayment($this->entity, $requestPayment);

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

        if ($this->response->requestState->state == 0) {
            throw new Exception\IntegrationResponse(
                $this->response->requestState->message,
                $this->response->requestState->code
            );
        }

        return $this->response;
    }
public function checkWebPayment ( $ token , $ transactionId ) { $ requestPayment = new Structure \ RequestPaymentDetails ( $ token , $ transactionId ) ; $ this -> response = parent :: checkWebPayment ( $ this -> entity , $ requestPayment ) ; /**
         * Checks the state of the platform integration.
         */ if ( Exception \ IntegrationState :: check ( $ this -> response -> requestState ) ) { throw new Exception \ IntegrationState ( $ this -> response -> requestState ) ; } 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 check the payment state.

@param  RequestPaymentDetails $paymentDetails Request payment
@return ResponsePaymentDetails                Response payment details
Calls PayPay Webservice to check the payment state .