Skip to content

Commit 833d99c

Browse files
committed
add ClientId to checksum
1 parent 1110880 commit 833d99c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

lib/Paymill/Models/Request/Checksum.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ class Checksum extends Base
121121
*/
122122
private $_handling_amount;
123123

124+
private $_clientId;
125+
124126
/**
125127
* Creates an instance of the checksum request model
126128
*/
@@ -129,6 +131,18 @@ function __construct()
129131
$this->_serviceResource = 'checksums/';
130132
}
131133

134+
public function setClientId($clientId)
135+
{
136+
$this->_clientId = $clientId;
137+
138+
return $this;
139+
}
140+
141+
public function getClientId()
142+
{
143+
return $this->_clientId;
144+
}
145+
132146
/**
133147
* Set amount
134148
*
@@ -582,6 +596,10 @@ public function parameterize($method)
582596
$parameterArray['handling_amount'] = $this->getHandlingAmount();
583597
}
584598

599+
if($this->getClientId()) {
600+
$parameterArray['client_id'] = $this->getClientId();
601+
}
602+
585603
// Unite params:
586604

587605
if($this->getAppId()) {

0 commit comments

Comments
 (0)