Skip to content
Merged
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
18 changes: 18 additions & 0 deletions lib/Paymill/Models/Request/Checksum.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ class Checksum extends Base
*/
private $_handling_amount;

private $_clientId;

/**
* Creates an instance of the checksum request model
*/
Expand All @@ -129,6 +131,18 @@ function __construct()
$this->_serviceResource = 'checksums/';
}

public function setClientId($clientId)
{
$this->_clientId = $clientId;

return $this;
}

public function getClientId()
{
return $this->_clientId;
}

/**
* Set amount
*
Expand Down Expand Up @@ -582,6 +596,10 @@ public function parameterize($method)
$parameterArray['handling_amount'] = $this->getHandlingAmount();
}

if($this->getClientId()) {
$parameterArray['client_id'] = $this->getClientId();
}

// Unite params:

if($this->getAppId()) {
Expand Down