Skip to content

Commit a8461b3

Browse files
committed
Updated transaction Exception
1 parent 8d55111 commit a8461b3

File tree

4 files changed

+3
-37
lines changed

4 files changed

+3
-37
lines changed

src/Exceptions/TransactionException.php

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,38 +6,4 @@
66
* Generic library-level exception.
77
*/
88
class TransactionException extends Exception{
9-
private $message;
10-
private $data;
11-
12-
/**
13-
* Create a new exception instance.
14-
*
15-
* @param string $data
16-
* @param array $data
17-
* @return void
18-
*/
19-
public function __construct(string $message, array $data = []){
20-
$this->message = $message;
21-
$this->data = $data;
22-
23-
parent::__construct($message);
24-
}
25-
26-
/**
27-
* Get the underlying response instance.
28-
*
29-
* @return string
30-
*/
31-
public function getMessage(){
32-
return $this->message;
33-
}
34-
35-
/**
36-
* Get the underlying response instance.
37-
*
38-
* @return array
39-
*/
40-
public function getData(){
41-
return $this->data;
42-
}
439
}

src/Services/CCNow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function ipn(array $input){
9292
return new TransactionResult($item_number, $txn_id, $amount, $status, $action, $input);
9393
}
9494

95-
throw new TransactionException('Cart Not Found for CCNow IPN', ['data'=>$input]);
95+
throw new TransactionException('Cart Not Found for CCNow IPN');
9696
}
9797

9898
/**

src/Services/Paypal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function ipn(array $input){
105105
return new TransactionResult($item_number, $txn_id, $amount, $status, $action, $input);
106106
}
107107

108-
throw new TransactionException('Item Number Not Found for Paypal IPN', ['data'=>$input]);
108+
throw new TransactionException('Item Number Not Found for Paypal IPN');
109109
}
110110

111111
/**

src/Services/TwoCheckout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function ipn(array $input){
9494
return new TransactionResult($item_number, $txn_id, $amount, $txn_type, $action, $input);
9595
}
9696

97-
throw new TransactionException('Cart Not Found for 2Checkout IPN', ['data'=>$input]);
97+
throw new TransactionException('Cart Not Found for 2Checkout IPN');
9898
}
9999

100100
/**

0 commit comments

Comments
 (0)