Skip to content

Commit 66a83f1

Browse files
committed
Enable CIM UpdatePaymentProfile
1 parent 55b6f52 commit 66a83f1

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/CIMGateway.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ public function createCard(array $parameters = array())
4646
return $this->createRequest('\Omnipay\AuthorizeNet\Message\CIMCreateCardRequest', $parameters);
4747
}
4848

49+
public function updateCard(array $parameters = array())
50+
{
51+
return $this->createRequest('\Omnipay\AuthorizeNet\Message\CIMUpdatePaymentProfileRequest', $parameters);
52+
}
53+
4954
public function getPaymentProfile(array $parameters = array())
5055
{
5156
return $this->createRequest('\Omnipay\AuthorizeNet\Message\CIMGetPaymentProfileRequest', $parameters);

src/Message/CIMUpdatePaymentProfileRequest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ public function getData()
1515
{
1616
$this->validate('card', 'customerProfileId', 'customerPaymentProfileId');
1717

18-
/** @var CreditCard $card */
19-
$card = $this->getCard();
20-
$card->validate();
18+
$this->cardValidate();
2119

2220
$data = $this->getBaseData();
2321
$data->customerProfileId = $this->getCustomerProfileId();

0 commit comments

Comments
 (0)