protected function setRequestData(array $data = [])
    {
        if (($this->post instanceof Collection) && (!$this->post->isEmpty())) {
            unset($this->post);
        }

        $this->post = new Collection($data);

        return $this->post;
    }
protected function setRequestData(array $data = [])
    {
        if (($this->post instanceof Collection) && (!$this->post->isEmpty())) {
            unset($this->post);
        }

        $this->post = new Collection($data);

        return $this->post;
    }
protected function setRequestData ( array $ data = [ ] ) { if ( ( $ this -> post instanceof Collection ) && ( ! $ this -> post -> isEmpty ( ) ) ) { unset ( $ this -> post ) ; } $ this -> post = new Collection ( $ data ) ; return $ this -> post ; }
Setup request data to be sent to PayPal.

@param array $data

@return \Illuminate\Support\Collection
Setup request data to be sent to PayPal .