Skip to content

Commit

Permalink
fixed code style
Browse files Browse the repository at this point in the history
  • Loading branch information
cseufert committed Feb 12, 2021
1 parent ce53617 commit 9c83fc8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Message/SecureXMLRiskPurchaseRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public function getData()
if ($email = $card->getEmail()) {
$buyer->addChild('emailAddress', $email);
}

return $xml;
}
}
2 changes: 2 additions & 0 deletions src/SecureXMLGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public function setMerchantId($value)
{
return $this->setParameter('merchantId', $value);
}

/**
* @return string
*/
Expand Down Expand Up @@ -100,6 +101,7 @@ public function purchase(array $parameters = [])
if ($this->getRiskManagement()) {
return $this->createRequest('\Omnipay\NABTransact\Message\SecureXMLRiskPurchaseRequest', $parameters);
}

return $this->createRequest('\Omnipay\NABTransact\Message\SecureXMLPurchaseRequest', $parameters);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/SecureXMLGatewayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function testPurchaseRiskManaged()
$this->assertSame('25.00', $request->getAmount());
$this->assertContains(
'<BuyerInfo><ip>1.1.1.1</ip><firstName>Example</firstName><firstName>User</firstName><zipcode>12345</zipcode><town>Billstown</town><billingCountry>US</billingCountry></BuyerInfo>',
(string)$request->getData()->asXml()
(string) $request->getData()->asXml()
);
}

Expand Down

0 comments on commit 9c83fc8

Please sign in to comment.