Skip to content

Replaced Guzzle dependency with native HttpHelper::class - #3054

Open
sanjana4khan wants to merge 16 commits into
devfrom
remove-guzzle
Open

sanjana4khan wants to merge 16 commits into
devfrom
remove-guzzle

Conversation

@sanjana4khan

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread ecommerce/PaymentGateways/Paypal/src/Core/Support/Request.php Outdated
@sanjana4khan
sanjana4khan marked this pull request as draft October 2, 2026 05:45
@sanjana4khan
sanjana4khan marked this pull request as ready for review October 5, 2026 04:09
@sanjana4khan sanjana4khan changed the title Replaced Guzzle dependency with native wp_remote_request() Replaced Guzzle dependency with native HttpHelper::class Oct 5, 2026
Comment thread helpers/HttpHelper.php Outdated
Comment thread helpers/HttpHelper.php Outdated
Comment thread helpers/HttpHelper.php Outdated
return $response;
}

return json_decode( (string) $response->get_body() );

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use $response->get_json() ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment thread ecommerce/PaymentGateways/Paypal/src/Core/Support/System.php Outdated
Comment thread ecommerce/PaymentGateways/Paypal/src/Core/Support/System.php Outdated
Comment thread helpers/HttpHelper.php
@@ -101,45 +101,58 @@ private function parse_response( $response ) {
/**

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Write a HttpHelperTest.php for unit test.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants