Skip to content

Commit ed1aecc

Browse files
mordySapbasu15
authored andcommitted
add $unmaskExpirationDate to getCustomerProfile
the api allows this both on getCustomerProfile and getCustomerPaymentProfile
1 parent de06148 commit ed1aecc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/AuthorizeNetCIM.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,13 @@ public function getCustomerProfileIds()
181181
*
182182
* @return AuthorizeNetCIM_Response
183183
*/
184-
public function getCustomerProfile($customerProfileId)
184+
public function getCustomerProfile($customerProfileId, $unmaskExpirationDate = false)
185185
{
186186
$this->_constructXml("getCustomerProfileRequest");
187187
$this->_xml->addChild("customerProfileId", $customerProfileId);
188+
if ( $unmaskExpirationDate ) {
189+
$this->_xml->addChild("unmaskExpirationDate", true);
190+
}
188191
return $this->_sendRequest();
189192
}
190193

0 commit comments

Comments
 (0)