Skip to content

Commit

Permalink
feat: add capture_statement_descriptor to capture request
Browse files Browse the repository at this point in the history
  • Loading branch information
processout-machine committed Mar 21, 2023
1 parent cdce46e commit 9a89822
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The package's installation is done using composer. Simply add these lines to you
```json
{
"require": {
"processout/processout-php": "^6.24.0"
"processout/processout-php": "^6.25.0"
}
}
```
Expand Down
1 change: 1 addition & 0 deletions src/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -1571,6 +1571,7 @@ public function capture($source, $options = array())
"auto_capture_at" => (!empty($options["auto_capture_at"])) ? $options["auto_capture_at"] : null,
"enable_three_d_s_2" => (!empty($options["enable_three_d_s_2"])) ? $options["enable_three_d_s_2"] : null,
"metadata" => (!empty($options["metadata"])) ? $options["metadata"] : null,
"capture_statement_descriptor" => (!empty($options["capture_statement_descriptor"])) ? $options["capture_statement_descriptor"] : null,
"source" => $source
);

Expand Down
2 changes: 1 addition & 1 deletion src/Networking/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -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/6.24.0'
'User-Agent: ProcessOut PHP-Bindings/6.25.0'
);
if (! empty($options['idempotencyKey']))
$headers[] = 'Idempotency-Key: ' . $options['idempotencyKey'];
Expand Down

0 comments on commit 9a89822

Please sign in to comment.