Skip to content

Commit 989fedd

Browse files
committed
leave validate card which only validates the presence of the card param
1 parent 87d07ae commit 989fedd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Message/CIMCreateCardRequest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class CIMCreateCardRequest extends CIMAbstractRequest
1414
public function getData()
1515
{
1616

17-
$this->validateCard();
17+
$this->validate('card');
18+
$this->cardValidate();
1819
$data = $this->getBaseData();
1920
$this->addProfileData($data);
2021
$this->addTransactionSettings($data);
@@ -27,15 +28,13 @@ public function getData()
2728
*
2829
* @param \SimpleXMLElement $data
2930
*/
30-
protected function validateCard()
31+
protected function cardValidate()
3132
{
3233

3334
if ($this->getOpaqueDataDescriptor() && $this->getOpaqueDataValue()) {
3435
return;
3536
}
3637

37-
$this->validate('card');
38-
3938
/** @var CreditCard $card */
4039
$card = $this->getCard();
4140
$card->validate();

0 commit comments

Comments
 (0)