Skip to content

Issue with setHttpResponse Method #196

Open
@iamandyagbaraku

Description

@iamandyagbaraku

Update the method to this

private function setHttpResponse($relativeUrl, $method, $body = [])
    {
        if (is_null($method)) {
            throw new IsNullException("Empty method not allowed");
        }

        $this->response = $this->client->{strtolower($method)}(
            $this->baseUrl . $relativeUrl,
            ['json' => $body] // ✅ 
        );

        return $this;
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @iamandyagbaraku

        Issue actions

          Issue with setHttpResponse Method · Issue #196 · unicodeveloper/laravel-paystack