Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This package provides bindings to the ProcessOut API.
Dependencies
------------

* PHP 5.4 or above
* PHP 8.0 or above
* cURL PHP extension

Installation
Expand All @@ -20,7 +20,7 @@ The package's installation is done using composer. Simply add these lines to you
```json
{
"require": {
"processout/processout-php": "^7.4.0"
"processout/processout-php": "^8.0.0"
}
}
```
Expand All @@ -41,7 +41,7 @@ cloning the directory into your project
git clone https://github.com/processout/processout-php
```

or downloading the latest release at
or downloading the latest release at
[github.com/ProcessOut/processout-php/releases](https://github.com/ProcessOut/processout-php/releases)
and including the ProcessOut init file

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
],
"require": {
"php": ">=5.4",
"php": ">=8.0",
"ext-curl": "*",
"ext-mbstring": "*"
},
Expand Down
10 changes: 2 additions & 8 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
include_once(dirname(__FILE__) . "/src/Networking/Request.php");
include_once(dirname(__FILE__) . "/src/Networking/Response.php");

include_once(dirname(__FILE__) . "/src/Activity.php");
include_once(dirname(__FILE__) . "/src/Addon.php");
include_once(dirname(__FILE__) . "/src/APIVersion.php");
include_once(dirname(__FILE__) . "/src/ApplePayAlternativeMerchantCertificates.php");
include_once(dirname(__FILE__) . "/src/AlternativeMerchantCertificate.php");
Expand All @@ -23,11 +21,9 @@
include_once(dirname(__FILE__) . "/src/Card.php");
include_once(dirname(__FILE__) . "/src/CardInformation.php");
include_once(dirname(__FILE__) . "/src/Phone.php");
include_once(dirname(__FILE__) . "/src/Coupon.php");
include_once(dirname(__FILE__) . "/src/Customer.php");
include_once(dirname(__FILE__) . "/src/CustomerPhone.php");
include_once(dirname(__FILE__) . "/src/Token.php");
include_once(dirname(__FILE__) . "/src/Discount.php");
include_once(dirname(__FILE__) . "/src/Event.php");
include_once(dirname(__FILE__) . "/src/ExportLayout.php");
include_once(dirname(__FILE__) . "/src/ExportLayoutConfiguration.php");
Expand Down Expand Up @@ -59,13 +55,11 @@
include_once(dirname(__FILE__) . "/src/Payout.php");
include_once(dirname(__FILE__) . "/src/PayoutItem.php");
include_once(dirname(__FILE__) . "/src/PayoutItemAmountBreakdowns.php");
include_once(dirname(__FILE__) . "/src/Plan.php");
include_once(dirname(__FILE__) . "/src/Product.php");
include_once(dirname(__FILE__) . "/src/Project.php");
include_once(dirname(__FILE__) . "/src/ProjectSFTPSettings.php");
include_once(dirname(__FILE__) . "/src/ProjectSFTPSettingsPublic.php");
include_once(dirname(__FILE__) . "/src/Refund.php");
include_once(dirname(__FILE__) . "/src/Subscription.php");
include_once(dirname(__FILE__) . "/src/Transaction.php");
include_once(dirname(__FILE__) . "/src/NativeAPMResponse.php");
include_once(dirname(__FILE__) . "/src/NativeAPMParameterDefinition.php");
Expand All @@ -77,11 +71,11 @@
include_once(dirname(__FILE__) . "/src/TransactionOperation.php");
include_once(dirname(__FILE__) . "/src/Webhook.php");
include_once(dirname(__FILE__) . "/src/WebhookEndpoint.php");
include_once(dirname(__FILE__) . "/src/CardUpdateRequest.php");
include_once(dirname(__FILE__) . "/src/CardCreateRequest.php");
include_once(dirname(__FILE__) . "/src/Device.php");
include_once(dirname(__FILE__) . "/src/CardContact.php");
include_once(dirname(__FILE__) . "/src/CardShipping.php");
include_once(dirname(__FILE__) . "/src/CardUpdateRequest.php");
include_once(dirname(__FILE__) . "/src/CardCreateRequest.php");
include_once(dirname(__FILE__) . "/src/ErrorCodes.php");
include_once(dirname(__FILE__) . "/src/CategoryErrorCodes.php");
include_once(dirname(__FILE__) . "/src/ExternalThreeDS.php");
Expand Down
4 changes: 2 additions & 2 deletions src/APIVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ public function fillWithData($data)

/**
* Implements the JsonSerializable interface
* @return object
* @return array
*/
public function jsonSerialize() {
public function jsonSerialize(): array {
return array(
"name" => $this->getName(),
"description" => $this->getDescription(),
Expand Down
Loading
Loading