Skip to content

Commit a50b9c1

Browse files
fix: Remove non required fields (#31)
Co-authored-by: ProcessOut Fountain <internal@processout.com>
1 parent 5c740cf commit a50b9c1

4 files changed

Lines changed: 3 additions & 14 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The package's installation is done using composer. Simply add these lines to you
2020
```json
2121
{
2222
"require": {
23-
"processout/processout-php": "^8.0.0"
23+
"processout/processout-php": "^8.0.1"
2424
}
2525
}
2626
```

src/Invoice.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1769,9 +1769,6 @@ public function authenticate($source, $options = array())
17691769
$data = array(
17701770
"device" => $this->getDevice(),
17711771
"incremental" => $this->getIncremental(),
1772-
"capture_type" => $this->getCaptureType(),
1773-
"split_allocations" => $this->getSplitAllocations(),
1774-
"installment_plan_id" => $this->getInstallmentPlanId(),
17751772
"synchronous" => (!empty($options["synchronous"])) ? $options["synchronous"] : null,
17761773
"retry_drop_liability_shift" => (!empty($options["retry_drop_liability_shift"])) ? $options["retry_drop_liability_shift"] : null,
17771774
"capture_amount" => (!empty($options["capture_amount"])) ? $options["capture_amount"] : null,
@@ -1859,9 +1856,6 @@ public function authorize($source, $options = array())
18591856
$data = array(
18601857
"device" => $this->getDevice(),
18611858
"incremental" => $this->getIncremental(),
1862-
"capture_type" => $this->getCaptureType(),
1863-
"split_allocations" => $this->getSplitAllocations(),
1864-
"installment_plan_id" => $this->getInstallmentPlanId(),
18651859
"synchronous" => (!empty($options["synchronous"])) ? $options["synchronous"] : null,
18661860
"retry_drop_liability_shift" => (!empty($options["retry_drop_liability_shift"])) ? $options["retry_drop_liability_shift"] : null,
18671861
"capture_amount" => (!empty($options["capture_amount"])) ? $options["capture_amount"] : null,
@@ -1914,9 +1908,7 @@ public function capture($source, $options = array())
19141908

19151909
$data = array(
19161910
"device" => $this->getDevice(),
1917-
"authenticate_only" => $this->getAuthenticateOnly(),
19181911
"incremental" => $this->getIncremental(),
1919-
"installment_plan_id" => $this->getInstallmentPlanId(),
19201912
"authorize_only" => (!empty($options["authorize_only"])) ? $options["authorize_only"] : null,
19211913
"synchronous" => (!empty($options["synchronous"])) ? $options["synchronous"] : null,
19221914
"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())
23142306
"unsupported_feature_bypass" => $this->getUnsupportedFeatureBypass(),
23152307
"verification" => $this->getVerification(),
23162308
"auto_capture_at" => $this->getAutoCaptureAt(),
2317-
"expires_at" => $this->getExpiresAt(),
2318-
"split_allocations" => $this->getSplitAllocations()
2309+
"expires_at" => $this->getExpiresAt()
23192310
);
23202311

23212312
$response = $request->post($path, $data, $options);

src/Networking/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected function prepare($options, $len = null)
3131
$headers = array(
3232
'API-Version: 1.4.0.0',
3333
'Content-Type: application/json',
34-
'User-Agent: ProcessOut PHP-Bindings/8.0.0'
34+
'User-Agent: ProcessOut PHP-Bindings/8.0.1'
3535
);
3636
if (! empty($options['idempotencyKey']))
3737
$headers[] = 'Idempotency-Key: ' . $options['idempotencyKey'];

src/Refund.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,6 @@ public function createForInvoice($invoiceId, $options = array())
427427
"reason" => $this->getReason(),
428428
"information" => $this->getInformation(),
429429
"invoice_detail_ids" => $this->getInvoiceDetailIds(),
430-
"split_allocations" => $this->getSplitAllocations(),
431430
"metadata" => (!empty($options["metadata"])) ? $options["metadata"] : null
432431
);
433432

@@ -523,7 +522,6 @@ public function create($options = array())
523522
"reason" => $this->getReason(),
524523
"information" => $this->getInformation(),
525524
"invoice_detail_ids" => $this->getInvoiceDetailIds(),
526-
"split_allocations" => $this->getSplitAllocations(),
527525
"metadata" => (!empty($options["metadata"])) ? $options["metadata"] : null
528526
);
529527

0 commit comments

Comments
 (0)