public function createPaymentReference(Structure\RequestReferenceDetails $paymentData)
    {
        $this->response = parent::createPaymentReference($this->entity, $paymentData);

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

        /**
         * In case an error code is returned not related to the integration state.
         * (eg.: maximum daily amount exceeded, maximum reference amount, etc.)
         */
        if ($this->response->state == 0) {
            throw new Exception\IntegrationResponse(
                $this->response->err_msg,
                $this->response->err_code
            );
        }

        return $this->response;
    }
public function createPaymentReference(Structure\RequestReferenceDetails $paymentData)
    {
        $this->response = parent::createPaymentReference($this->entity, $paymentData);

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

        /**
         * In case an error code is returned not related to the integration state.
         * (eg.: maximum daily amount exceeded, maximum reference amount, etc.)
         */
        if ($this->response->state == 0) {
            throw new Exception\IntegrationResponse(
                $this->response->err_msg,
                $this->response->err_code
            );
        }

        return $this->response;
    }
public function createPaymentReference ( Structure \ RequestReferenceDetails $ paymentData ) { $ this -> response = parent :: createPaymentReference ( $ this -> entity , $ paymentData ) ; /**
         * Checks the state of the platform integration.
         */ if ( Exception \ IntegrationState :: check ( $ this -> response -> integrationState ) ) { throw new Exception \ IntegrationState ( $ this -> response -> integrationState ) ; } /**
         * In case an error code is returned not related to the integration state.
         * (eg.: maximum daily amount exceeded, maximum reference amount, etc.)
         */ if ( $ this -> response -> state == 0 ) { throw new Exception \ IntegrationResponse ( $ this -> response -> err_msg , $ this -> response -> err_code ) ; } return $ this -> response ; }
Creates a new payment reference via PayPay.

@param  array               $paymentData Payment information ex: amount
@return ResponseGetPayment  $result      Webservice response
Creates a new payment reference via PayPay .