Skip to content

Commit

Permalink
Add codeclimate badges (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhdcodes authored Mar 16, 2022
1 parent f6a5f11 commit 05fb1c8
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 24 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

![Tests](https://github.com/phpjuice/paypal-checkout-sdk/workflows/Tests/badge.svg?branch=main)
[![Latest Stable Version](http://poser.pugx.org/phpjuice/paypal-checkout-sdk/v)](https://packagist.org/packages/phpjuice/paypal-checkout-sdk)
[![Maintainability](https://api.codeclimate.com/v1/badges/e600bc7ccce319ffe7c7/maintainability)](https://codeclimate.com/github/phpjuice/paypal-checkout-sdk/maintainability)
[![Total Downloads](http://poser.pugx.org/phpjuice/paypal-checkout-sdk/downloads)](https://packagist.org/packages/phpjuice/paypal-checkout-sdk)
[![License](http://poser.pugx.org/phpjuice/paypal-checkout-sdk/license)](https://packagist.org/packages/phpjuice/paypal-checkout-sdk)

Expand Down Expand Up @@ -157,5 +158,6 @@ information.

![Tests](https://github.com/phpjuice/paypal-checkout-sdk/workflows/Tests/badge.svg?branch=main)
[![Latest Stable Version](http://poser.pugx.org/phpjuice/paypal-checkout-sdk/v)](https://packagist.org/packages/phpjuice/paypal-checkout-sdk)
[![Maintainability](https://api.codeclimate.com/v1/badges/e600bc7ccce319ffe7c7/maintainability)](https://codeclimate.com/github/phpjuice/paypal-checkout-sdk/maintainability)
[![Total Downloads](http://poser.pugx.org/phpjuice/paypal-checkout-sdk/downloads)](https://packagist.org/packages/phpjuice/paypal-checkout-sdk)
[![License](http://poser.pugx.org/phpjuice/paypal-checkout-sdk/license)](https://packagist.org/packages/phpjuice/paypal-checkout-sdk)
9 changes: 6 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ $response = $client->send($request);
$result = json_decode($response->getBody()->getContents());
```

## We have badges!

![Tests](https://github.com/phpjuice/paypal-checkout-sdk/workflows/Tests/badge.svg?branch=main) [![Latest Stable Version](http://poser.pugx.org/phpjuice/paypal-checkout-sdk/v)](https://packagist.org/packages/phpjuice/paypal-checkout-sdk) [![Total Downloads](http://poser.pugx.org/phpjuice/paypal-checkout-sdk/downloads)](https://packagist.org/packages/phpjuice/paypal-checkout-sdk) [![License](http://poser.pugx.org/phpjuice/paypal-checkout-sdk/license)](https://packagist.org/packages/phpjuice/paypal-checkout-sdk)
## We have badges

![Tests](https://github.com/phpjuice/paypal-checkout-sdk/workflows/Tests/badge.svg?branch=main)
[![Latest Stable Version](http://poser.pugx.org/phpjuice/paypal-checkout-sdk/v)](https://packagist.org/packages/phpjuice/paypal-checkout-sdk)
[![Maintainability](https://api.codeclimate.com/v1/badges/e600bc7ccce319ffe7c7/maintainability)](https://codeclimate.com/github/phpjuice/paypal-checkout-sdk/maintainability)
[![Total Downloads](http://poser.pugx.org/phpjuice/paypal-checkout-sdk/downloads)](https://packagist.org/packages/phpjuice/paypal-checkout-sdk)
[![License](http://poser.pugx.org/phpjuice/paypal-checkout-sdk/license)](https://packagist.org/packages/phpjuice/paypal-checkout-sdk)
1 change: 0 additions & 1 deletion docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@
* [Order](api/order.md)
* [Payee](api/payee.md)
* [Purchase Unit](api/purchase-unit.md)

1 change: 0 additions & 1 deletion docs/basic-usage/order-capture.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,3 @@ Errors :
]
}
```

1 change: 0 additions & 1 deletion docs/basic-usage/order-create.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,3 @@ A successful request returns the HTTP `201` Created status code and a JSON respo
]
}
```

1 change: 0 additions & 1 deletion docs/basic-usage/order-show.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,3 @@ A successful request returns the HTTP `200` status code and a JSON response body
]
}
```

1 change: 0 additions & 1 deletion docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Changelog

All notable changes to `paypal-checkout-sdk` are documented on [GitHub](https://github.com/phpjuice/paypal-checkout-sdk/tree/eb2f4c679d997d8cedcbde12cfec7b35bd3cf9e8/changelog.md)

7 changes: 3 additions & 4 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ Get client ID and client secret by going to [https://developer.paypal.com/develo

## Setup a Paypal Client

Inorder to communicate with PayPal platform we need to set up a client first :
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

```php
// import namespace
Expand All @@ -32,7 +32,7 @@ $environment = new SandboxEnvironment($clientId, $clientSecret);
$client = new PayPalClient($environment);
```

### Create a client with production environment :
### Create a client with production environment

```php
// import namespace
Expand All @@ -49,4 +49,3 @@ $environment = new ProductionEnvironment($clientId, $clientSecret);
// create a new client
$client = new PayPalClient($environment);
```

1 change: 0 additions & 1 deletion docs/questions-and-issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving the package? Feel free to [create an issue on GitHub](https://github.com/phpjuice/paypal-checkout-sdk/issues), we'll try to address it as soon as possible.

If you discover any security related issues, please email us at phpjuice@gmail.com instead of using the issue tracker.

3 changes: 1 addition & 2 deletions docs/requirements.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# Requirements

## Requirements
## PHP Requirements

`paypal-checkout-sdk` Package requires PHP 7.4 or higher. If you are using an older version of php this package may not function correctly.

## Older versions

If you do not meet the requirements, you can opt to use an older version of the package. We only actively maintain the latest version.

17 changes: 8 additions & 9 deletions docs/upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,16 @@ find and replace on your editor.
- Run`composer update`. Of course, your app must meet the minimum requirements as well.
- Change `PayPalClient` namespace from `PayPal\Checkout\Http\PayPalClient` to `PayPal\Http\PayPalClient`.
- Change environments namespace:
- `PayPal\Checkout\Environment\Environment` to `PayPal\Http\Environment\Environment`.
- `PayPal\Checkout\Environment\ProductionEnvironment` to `PayPal\Http\Environment\ProductionEnvironment`.
- `PayPal\Checkout\Environment\SandboxEnvironment` to `PayPal\Http\Environment\SandboxEnvironment`.
- `PayPal\Checkout\Environment\Environment` to `PayPal\Http\Environment\Environment`.
- `PayPal\Checkout\Environment\ProductionEnvironment` to `PayPal\Http\Environment\ProductionEnvironment`.
- `PayPal\Checkout\Environment\SandboxEnvironment` to `PayPal\Http\Environment\SandboxEnvironment`.
- Change requests namespace:
- `PayPal\Checkout\Http\OrderCreateRequest` to `PayPal\Checkout\Requests\OrderCreateRequest`.
- `PayPal\Checkout\Http\OrderCaptureRequest` to `PayPal\Checkout\Requests\OrderCaptureRequest`.
- `PayPal\Checkout\Http\OrderAuthorizeRequest` to `PayPal\Checkout\Requests\OrderAuthorizeRequest`.
- `PayPal\Checkout\Http\OrderShowRequest` to `PayPal\Checkout\Requests\OrderShowRequest`.
- `PayPal\Checkout\Http\PaypalRequest` to `PayPal\Http\PaypalRequest`
- `PayPal\Checkout\Http\OrderCreateRequest` to `PayPal\Checkout\Requests\OrderCreateRequest`.
- `PayPal\Checkout\Http\OrderCaptureRequest` to `PayPal\Checkout\Requests\OrderCaptureRequest`.
- `PayPal\Checkout\Http\OrderAuthorizeRequest` to `PayPal\Checkout\Requests\OrderAuthorizeRequest`.
- `PayPal\Checkout\Http\OrderShowRequest` to `PayPal\Checkout\Requests\OrderShowRequest`.
- `PayPal\Checkout\Http\PaypalRequest` to `PayPal\Http\PaypalRequest`

## UPGRADING FROM V1 TO V2

There are no special requirements for upgrading from v1 to v2, other than changing ^1.xx \(xx can vary\) to ^2.0 in your composer. json and running `composer update`. Of course, your app must meet the minimum requirements as well.

0 comments on commit 05fb1c8

Please sign in to comment.