PHPackages                             wartw89/paypal-http-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. wartw89/paypal-http-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

wartw89/paypal-http-client
==========================

PHP Http Client for PayPal's REST API

v1(3y ago)0111MITPHPPHP ^7.4 || ^8.0 || ^8.1

Since Apr 22Pushed 3y agoCompare

[ Source](https://github.com/wartw/paypal-http-client)[ Packagist](https://packagist.org/packages/wartw89/paypal-http-client)[ Docs](https://github.com/phpjuice/paypal-http-client)[ RSS](/packages/wartw89-paypal-http-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (1)

PayPal HTTP Client
==================

[](#paypal-http-client)

[![Tests](https://github.com/phpjuice/paypal-http-client/workflows/Tests/badge.svg?branch=main)](https://github.com/phpjuice/paypal-http-client/workflows/Tests/badge.svg?branch=main)[![Latest Stable Version](https://camo.githubusercontent.com/ed36d43f404c195dd6b670f6641cf2291a065248fc9a6cb3c69e41d8c29c53d2/687474703a2f2f706f7365722e707567782e6f72672f7068706a756963652f70617970616c2d687474702d636c69656e742f76)](https://packagist.org/packages/phpjuice/paypal-http-client)[![Total Downloads](https://camo.githubusercontent.com/3c3af8c9e4446b5071ccaad2f0b0265e93a82e6a1cf873370a8ce2073fd7a992/687474703a2f2f706f7365722e707567782e6f72672f7068706a756963652f70617970616c2d687474702d636c69656e742f646f776e6c6f616473)](https://packagist.org/packages/phpjuice/paypal-http-client)[![License](https://camo.githubusercontent.com/1249f8a2af53b7599b2f753dd9a2ebb92904b72079b62e0ce65079d200b47624/687474703a2f2f706f7365722e707567782e6f72672f7068706a756963652f70617970616c2d687474702d636c69656e742f6c6963656e7365)](https://packagist.org/packages/phpjuice/paypal-http-client)

This Package is a PHP Http Client. It provides a simple, fluent API to interact with PayPal rest API.

To learn all about it, head over to the extensive [documentation](https://phpjuice.gitbook.io/paypal-checkout-sdk).

Installation
------------

[](#installation)

This Package requires PHP 7.4 or higher.

One can install this package via Composer.

```
composer require "phpjuice/paypal-http-client"
```

Setup
-----

[](#setup)

PayPal HTTP Client is designed to simplify using the new PayPal checkout api in your app.

### Setup Credentials

[](#setup-credentials)

Get client ID and client secret by visiting the [PayPal Developer Account](https://developer.paypal.com/developer/applications) and generating a REST API app.

### Setup Paypal Client

[](#setup-paypal-client)

In order to communicate with PayPal platform we need to set up a client first :

#### Create a client with sandbox environment:

[](#create-a-client-with-sandbox-environment)

```
