diff --git a/src/Message/AIMAbstractRequest.php b/src/Message/AIMAbstractRequest.php index 6da15696..17468a34 100644 --- a/src/Message/AIMAbstractRequest.php +++ b/src/Message/AIMAbstractRequest.php @@ -210,6 +210,8 @@ protected function addBillingData(\SimpleXMLElement $data) $req->customer->id = $customer; } + $req->order->description = $this->getDescription(); + /** @var CreditCard $card */ if ($card = $this->getCard()) { // A card is present, so include billing and shipping details diff --git a/tests/AIMGatewayTest.php b/tests/AIMGatewayTest.php index 81a51537..595862ab 100644 --- a/tests/AIMGatewayTest.php +++ b/tests/AIMGatewayTest.php @@ -22,21 +22,25 @@ public function setUp() $this->purchaseOptions = array( 'amount' => '10.00', 'card' => $this->getValidCard(), + 'description' => 'purchase', ); $this->captureOptions = array( 'amount' => '10.00', 'transactionReference' => '12345', + 'description' => 'capture', ); $this->voidOptions = array( 'transactionReference' => '12345', + 'description' => 'void', ); $this->refundOptions = array( 'amount' => '10.00', 'transactionReference' => '12345', - 'card' => $this->getValidCard() + 'card' => $this->getValidCard(), + 'description' => 'refund', ); } diff --git a/tests/Message/AIMAuthorizeRequestTest.php b/tests/Message/AIMAuthorizeRequestTest.php index 245d7098..852a1b3b 100644 --- a/tests/Message/AIMAuthorizeRequestTest.php +++ b/tests/Message/AIMAuthorizeRequestTest.php @@ -41,6 +41,7 @@ public function testGetData() "amount", "payment", "customer", + "order", "billTo", "shipTo", "customerIP",