Skip to content
Open
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
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": "^9.0.0"
"processout/processout-php": "^9.0.1"
}
}
```
Expand Down
32 changes: 32 additions & 0 deletions src/InvoiceDevice.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ class InvoiceDevice implements \JsonSerializable
*/
protected $channel;

/**
* Preferred 3DS SDK type for authentication. This is the recommended field to use instead of channel for 3DS SDK selection
* @var string
*/
protected $threedsSdk;

/**
* Platform of the device for analytics and metadata. Possible values: "web", "ios", "android", "other"
* @var string
Expand Down Expand Up @@ -75,6 +81,28 @@ public function setChannel($value)
return $this;
}

/**
* Get ThreedsSdk
* Preferred 3DS SDK type for authentication. This is the recommended field to use instead of channel for 3DS SDK selection
* @return string
*/
public function getThreedsSdk()
{
return $this->threedsSdk;
}

/**
* Set ThreedsSdk
* Preferred 3DS SDK type for authentication. This is the recommended field to use instead of channel for 3DS SDK selection
* @param string $value
* @return $this
*/
public function setThreedsSdk($value)
{
$this->threedsSdk = $value;
return $this;
}

/**
* Get Platform
* Platform of the device for analytics and metadata. Possible values: "web", "ios", "android", "other"
Expand Down Expand Up @@ -152,6 +180,9 @@ public function fillWithData($data)
if(! empty($data['channel']))
$this->setChannel($data['channel']);

if(! empty($data['threeds_sdk']))
$this->setThreedsSdk($data['threeds_sdk']);

if(! empty($data['platform']))
$this->setPlatform($data['platform']);

Expand All @@ -171,6 +202,7 @@ public function fillWithData($data)
public function jsonSerialize(): array {
return array(
"channel" => $this->getChannel(),
"threeds_sdk" => $this->getThreedsSdk(),
"platform" => $this->getPlatform(),
"ip_address" => $this->getIpAddress(),
"id" => $this->getId(),
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/9.0.0'
'User-Agent: ProcessOut PHP-Bindings/9.0.1'
);
if (! empty($options['idempotencyKey']))
$headers[] = 'Idempotency-Key: ' . $options['idempotencyKey'];
Expand Down
6 changes: 3 additions & 3 deletions src/PaymentProcessingConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class PaymentProcessingConfiguration implements \JsonSerializable
protected $bypassUnsupportedSplitPayments;

/**
* Alternative Payment Method (APM) specific payment processing cofiguration.
* Alternative Payment Method (APM) specific payment processing configuration.
* @var object
*/
protected $apmPaymentConfig;
Expand Down Expand Up @@ -65,7 +65,7 @@ public function setBypassUnsupportedSplitPayments($value)

/**
* Get ApmPaymentConfig
* Alternative Payment Method (APM) specific payment processing cofiguration.
* Alternative Payment Method (APM) specific payment processing configuration.
* @return object
*/
public function getApmPaymentConfig()
Expand All @@ -75,7 +75,7 @@ public function getApmPaymentConfig()

/**
* Set ApmPaymentConfig
* Alternative Payment Method (APM) specific payment processing cofiguration.
* Alternative Payment Method (APM) specific payment processing configuration.
* @param object $value
* @return $this
*/
Expand Down