From 882edb3cee35c7d82e69f7fcfecd04d0624395f8 Mon Sep 17 00:00:00 2001 From: ProcessOut Fountain Date: Wed, 21 Jan 2026 16:35:13 +0100 Subject: [PATCH] fix: Remove non required fields --- README.md | 2 +- src/Invoice.php | 11 +---------- src/Networking/Request.php | 2 +- src/Refund.php | 2 -- 4 files changed, 3 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 2a465f1..ee2bbf3 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ The package's installation is done using composer. Simply add these lines to you ```json { "require": { - "processout/processout-php": "^8.0.0" + "processout/processout-php": "^8.0.1" } } ``` diff --git a/src/Invoice.php b/src/Invoice.php index 3143853..a4ccfa4 100755 --- a/src/Invoice.php +++ b/src/Invoice.php @@ -1769,9 +1769,6 @@ public function authenticate($source, $options = array()) $data = array( "device" => $this->getDevice(), "incremental" => $this->getIncremental(), - "capture_type" => $this->getCaptureType(), - "split_allocations" => $this->getSplitAllocations(), - "installment_plan_id" => $this->getInstallmentPlanId(), "synchronous" => (!empty($options["synchronous"])) ? $options["synchronous"] : null, "retry_drop_liability_shift" => (!empty($options["retry_drop_liability_shift"])) ? $options["retry_drop_liability_shift"] : null, "capture_amount" => (!empty($options["capture_amount"])) ? $options["capture_amount"] : null, @@ -1859,9 +1856,6 @@ public function authorize($source, $options = array()) $data = array( "device" => $this->getDevice(), "incremental" => $this->getIncremental(), - "capture_type" => $this->getCaptureType(), - "split_allocations" => $this->getSplitAllocations(), - "installment_plan_id" => $this->getInstallmentPlanId(), "synchronous" => (!empty($options["synchronous"])) ? $options["synchronous"] : null, "retry_drop_liability_shift" => (!empty($options["retry_drop_liability_shift"])) ? $options["retry_drop_liability_shift"] : null, "capture_amount" => (!empty($options["capture_amount"])) ? $options["capture_amount"] : null, @@ -1914,9 +1908,7 @@ public function capture($source, $options = array()) $data = array( "device" => $this->getDevice(), - "authenticate_only" => $this->getAuthenticateOnly(), "incremental" => $this->getIncremental(), - "installment_plan_id" => $this->getInstallmentPlanId(), "authorize_only" => (!empty($options["authorize_only"])) ? $options["authorize_only"] : null, "synchronous" => (!empty($options["synchronous"])) ? $options["synchronous"] : null, "retry_drop_liability_shift" => (!empty($options["retry_drop_liability_shift"])) ? $options["retry_drop_liability_shift"] : null, @@ -2314,8 +2306,7 @@ public function create($options = array()) "unsupported_feature_bypass" => $this->getUnsupportedFeatureBypass(), "verification" => $this->getVerification(), "auto_capture_at" => $this->getAutoCaptureAt(), - "expires_at" => $this->getExpiresAt(), - "split_allocations" => $this->getSplitAllocations() + "expires_at" => $this->getExpiresAt() ); $response = $request->post($path, $data, $options); diff --git a/src/Networking/Request.php b/src/Networking/Request.php index 1c8395e..df21486 100644 --- a/src/Networking/Request.php +++ b/src/Networking/Request.php @@ -31,7 +31,7 @@ protected function prepare($options, $len = null) $headers = array( 'API-Version: 1.4.0.0', 'Content-Type: application/json', - 'User-Agent: ProcessOut PHP-Bindings/8.0.0' + 'User-Agent: ProcessOut PHP-Bindings/8.0.1' ); if (! empty($options['idempotencyKey'])) $headers[] = 'Idempotency-Key: ' . $options['idempotencyKey']; diff --git a/src/Refund.php b/src/Refund.php index 7ca5af2..3f8a7ac 100755 --- a/src/Refund.php +++ b/src/Refund.php @@ -427,7 +427,6 @@ public function createForInvoice($invoiceId, $options = array()) "reason" => $this->getReason(), "information" => $this->getInformation(), "invoice_detail_ids" => $this->getInvoiceDetailIds(), - "split_allocations" => $this->getSplitAllocations(), "metadata" => (!empty($options["metadata"])) ? $options["metadata"] : null ); @@ -523,7 +522,6 @@ public function create($options = array()) "reason" => $this->getReason(), "information" => $this->getInformation(), "invoice_detail_ids" => $this->getInvoiceDetailIds(), - "split_allocations" => $this->getSplitAllocations(), "metadata" => (!empty($options["metadata"])) ? $options["metadata"] : null );