@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * @param string $card_num The credit card number |
103 | 103 | * @param string $exp_date CC expiration date |
104 | 104 | * |
105 | - * @return AuthorizeNetAIM_Response |
|
105 | + * @return AuthorizeNetARB_Response |
|
106 | 106 | */ |
107 | 107 | public function authorizeAndCapture($amount = false, $card_num = false, $exp_date = false) |
108 | 108 | { |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | * @param string $trans_id Transaction id to charge |
124 | 124 | * @param string $amount Dollar amount to charge if lesser than auth |
125 | 125 | * |
126 | - * @return AuthorizeNetAIM_Response |
|
126 | + * @return AuthorizeNetARB_Response |
|
127 | 127 | */ |
128 | 128 | public function priorAuthCapture($trans_id = false, $amount = false) |
129 | 129 | { |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | * @param string $card_num The credit card number |
143 | 143 | * @param string $exp_date CC expiration date |
144 | 144 | * |
145 | - * @return AuthorizeNetAIM_Response |
|
145 | + * @return AuthorizeNetARB_Response |
|
146 | 146 | */ |
147 | 147 | public function authorizeOnly($amount = false, $card_num = false, $exp_date = false) |
148 | 148 | { |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | * |
162 | 162 | * @param string $trans_id Transaction id to void |
163 | 163 | * |
164 | - * @return AuthorizeNetAIM_Response |
|
164 | + * @return AuthorizeNetARB_Response |
|
165 | 165 | */ |
166 | 166 | public function void($trans_id = false) |
167 | 167 | { |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | * @param string $card_num The last 4 of credit card number |
181 | 181 | * @param string $exp_date CC expiration date |
182 | 182 | * |
183 | - * @return AuthorizeNetAIM_Response |
|
183 | + * @return AuthorizeNetARB_Response |
|
184 | 184 | */ |
185 | 185 | public function captureOnly($auth_code = false, $amount = false, $card_num = false, $exp_date = false) |
186 | 186 | { |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | * @param string $amount The dollar amount to credit |
202 | 202 | * @param string $card_num The last 4 of credit card number |
203 | 203 | * |
204 | - * @return AuthorizeNetAIM_Response |
|
204 | + * @return AuthorizeNetARB_Response |
|
205 | 205 | */ |
206 | 206 | public function credit($trans_id = false, $amount = false, $card_num = false) |
207 | 207 | { |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | /** |
94 | 94 | * Create an ARB subscription |
95 | 95 | * |
96 | - * @param AuthorizeNet_Subscription $subscription |
|
96 | + * @param AuthorizeNet_Subscription $subscriptionList |
|
97 | 97 | * |
98 | 98 | * @return AuthorizeNetARB_Response |
99 | 99 | */ |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | { |
155 | 155 | |
156 | 156 | /** |
157 | - * @return int |
|
157 | + * @return false|string |
|
158 | 158 | */ |
159 | 159 | public function getSubscriptionId() |
160 | 160 | { |
@@ -84,7 +84,7 @@ |
||
84 | 84 | * |
85 | 85 | * @param string $response |
86 | 86 | * |
87 | - * @return AuthorizeNetAIM_Response |
|
87 | + * @return AuthorizeNetCP_Response |
|
88 | 88 | */ |
89 | 89 | protected function _handleResponse($response) |
90 | 90 | { |
@@ -2,7 +2,6 @@ |
||
2 | 2 | namespace net\authorize\util; |
3 | 3 | |
4 | 4 | use net\authorize\util\LogFactory; |
5 | -use net\authorize\util\Log; |
|
6 | 5 | |
7 | 6 | /** |
8 | 7 | * A class to send a request to the XML API. |
@@ -4,6 +4,10 @@ |
||
4 | 4 | class LogFactory |
5 | 5 | { |
6 | 6 | private static $logger = NULL; |
7 | + |
|
8 | + /** |
|
9 | + * @param string $classType |
|
10 | + */ |
|
7 | 11 | public static function getLog($classType){ |
8 | 12 | if(NULL == self::$logger){ |
9 | 13 | self::$logger = new Log(); |
@@ -30,6 +30,7 @@ |
||
30 | 30 | /** |
31 | 31 | * Get the post url. We need this because until 5.3 you |
32 | 32 | * you could not access child constants in a parent class. |
33 | + * @return string|null |
|
33 | 34 | */ |
34 | 35 | abstract protected function _getPostUrl(); |
35 | 36 |
@@ -110,6 +110,7 @@ |
||
110 | 110 | * Grabs the contents of a unique element. |
111 | 111 | * |
112 | 112 | * @param string |
113 | + * @param string $elementName |
|
113 | 114 | * @return string |
114 | 115 | */ |
115 | 116 | protected function _getElementContents($elementName) |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | * iteratively fetches the properties of the object (including from the base classes up the hierarchy), ... |
114 | 114 | * collects them in an array of ReflectionProperty and returns the array. |
115 | 115 | * |
116 | - * @param ReflectionObject $reflClass |
|
116 | + * @param \ReflectionObject $reflClass |
|
117 | 117 | * |
118 | 118 | * @return \ReflectionProperty[] |
119 | 119 | */ |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | * |
138 | 138 | * Receives a ReflectionProperty and an object, and returns a masked object if the ReflectionProperty corresponds to a sensitive field, else returns false. |
139 | 139 | * |
140 | - * @param ReflectionProperty $prop |
|
140 | + * @param \ReflectionProperty $prop |
|
141 | 141 | * @param object $obj |
142 | 142 | * |
143 | 143 | * @return string|bool |
@@ -269,6 +269,9 @@ discard block |
||
269 | 269 | file_put_contents($this->logFile, $logString, $flags); |
270 | 270 | } |
271 | 271 | |
272 | + /** |
|
273 | + * @param string $logMessage |
|
274 | + */ |
|
272 | 275 | public function debug($logMessage, $flags=FILE_APPEND) |
273 | 276 | { |
274 | 277 | if(ANET_LOG_DEBUG >= $this->logLevel){ |
@@ -294,6 +297,9 @@ discard block |
||
294 | 297 | } |
295 | 298 | } |
296 | 299 | |
300 | + /** |
|
301 | + * @param string $logLevelPrefix |
|
302 | + */ |
|
297 | 303 | private function logFormat($logLevelPrefix, $format, $objects, $flags){ |
298 | 304 | try { |
299 | 305 | foreach($objects as $i => $testObject){ |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * @param AuthorizeNetCustomer $customerProfile |
52 | 52 | * @param string $validationMode |
53 | 53 | * |
54 | - * @return AuthorizeNetCIM_Response |
|
54 | + * @return AuthorizeNetARB_Response |
|
55 | 55 | */ |
56 | 56 | public function createCustomerProfile($customerProfile, $validationMode = "none") |
57 | 57 | { |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | * @param AuthorizeNetPaymentProfile $paymentProfile |
70 | 70 | * @param string $validationMode |
71 | 71 | * |
72 | - * @return AuthorizeNetCIM_Response |
|
72 | + * @return AuthorizeNetARB_Response |
|
73 | 73 | */ |
74 | 74 | public function createCustomerPaymentProfile($customerProfileId, $paymentProfile, $validationMode = "none") |
75 | 75 | { |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * @param int $customerProfileId |
88 | 88 | * @param AuthorizeNetAddress $shippingAddress |
89 | 89 | * |
90 | - * @return AuthorizeNetCIM_Response |
|
90 | + * @return AuthorizeNetARB_Response |
|
91 | 91 | */ |
92 | 92 | public function createCustomerShippingAddress($customerProfileId, $shippingAddress) |
93 | 93 | { |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | * @param AuthorizeNetTransaction $transaction |
106 | 106 | * @param string $extraOptionsString |
107 | 107 | * |
108 | - * @return AuthorizeNetCIM_Response |
|
108 | + * @return AuthorizeNetARB_Response |
|
109 | 109 | */ |
110 | 110 | public function createCustomerProfileTransaction($transactionType, $transaction, $extraOptionsString = "") |
111 | 111 | { |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | * |
123 | 123 | * @param int $customerProfileId |
124 | 124 | * |
125 | - * @return AuthorizeNetCIM_Response |
|
125 | + * @return AuthorizeNetARB_Response |
|
126 | 126 | */ |
127 | 127 | public function deleteCustomerProfile($customerProfileId) |
128 | 128 | { |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | * @param int $customerProfileId |
138 | 138 | * @param int $customerPaymentProfileId |
139 | 139 | * |
140 | - * @return AuthorizeNetCIM_Response |
|
140 | + * @return AuthorizeNetARB_Response |
|
141 | 141 | */ |
142 | 142 | public function deleteCustomerPaymentProfile($customerProfileId, $customerPaymentProfileId) |
143 | 143 | { |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | * @param int $customerProfileId |
154 | 154 | * @param int $customerAddressId |
155 | 155 | * |
156 | - * @return AuthorizeNetCIM_Response |
|
156 | + * @return AuthorizeNetARB_Response |
|
157 | 157 | */ |
158 | 158 | public function deleteCustomerShippingAddress($customerProfileId, $customerAddressId) |
159 | 159 | { |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | /** |
167 | 167 | * Get all customer profile ids. |
168 | 168 | * |
169 | - * @return AuthorizeNetCIM_Response |
|
169 | + * @return AuthorizeNetARB_Response |
|
170 | 170 | */ |
171 | 171 | public function getCustomerProfileIds() |
172 | 172 | { |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | * |
180 | 180 | * @param int $customerProfileId |
181 | 181 | * |
182 | - * @return AuthorizeNetCIM_Response |
|
182 | + * @return AuthorizeNetARB_Response |
|
183 | 183 | */ |
184 | 184 | public function getCustomerProfile($customerProfileId, $unmaskExpirationDate = false) |
185 | 185 | { |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | * @param int $customerPaymentProfileId |
199 | 199 | * @param boolean $unmaskExpirationDate |
200 | 200 | * |
201 | - * @return AuthorizeNetCIM_Response |
|
201 | + * @return AuthorizeNetARB_Response |
|
202 | 202 | */ |
203 | 203 | public function getCustomerPaymentProfile($customerProfileId, $customerPaymentProfileId, $unmaskExpirationDate = false) |
204 | 204 | { |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | * @param int $customerProfileId |
219 | 219 | * @param int $customerAddressId |
220 | 220 | * |
221 | - * @return AuthorizeNetCIM_Response |
|
221 | + * @return AuthorizeNetARB_Response |
|
222 | 222 | */ |
223 | 223 | public function getCustomerShippingAddress($customerProfileId, $customerAddressId) |
224 | 224 | { |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | * @param int $customerProfileId |
235 | 235 | * @param AuthorizeNetCustomer $customerProfile |
236 | 236 | * |
237 | - * @return AuthorizeNetCIM_Response |
|
237 | + * @return AuthorizeNetARB_Response |
|
238 | 238 | */ |
239 | 239 | public function updateCustomerProfile($customerProfileId, $customerProfile) |
240 | 240 | { |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | * @param AuthorizeNetPaymentProfile $paymentProfile |
254 | 254 | * @param string $validationMode |
255 | 255 | * |
256 | - * @return AuthorizeNetCIM_Response |
|
256 | + * @return AuthorizeNetARB_Response |
|
257 | 257 | */ |
258 | 258 | public function updateCustomerPaymentProfile($customerProfileId, $customerPaymentProfileId, $paymentProfile, $validationMode = "none") |
259 | 259 | { |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | * @param int $customerShippingAddressId |
274 | 274 | * @param AuthorizeNetAddress $shippingAddress |
275 | 275 | * |
276 | - * @return AuthorizeNetCIM_Response |
|
276 | + * @return AuthorizeNetARB_Response |
|
277 | 277 | */ |
278 | 278 | public function updateCustomerShippingAddress($customerProfileId, $customerShippingAddressId, $shippingAddress) |
279 | 279 | { |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | * @param int $splitTenderId |
293 | 293 | * @param string $splitTenderStatus |
294 | 294 | * |
295 | - * @return AuthorizeNetCIM_Response |
|
295 | + * @return AuthorizeNetARB_Response |
|
296 | 296 | */ |
297 | 297 | public function updateSplitTenderGroup($splitTenderId, $splitTenderStatus) |
298 | 298 | { |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | * @param int $cardCode |
312 | 312 | * @param string $validationMode |
313 | 313 | * |
314 | - * @return AuthorizeNetCIM_Response |
|
314 | + * @return AuthorizeNetARB_Response |
|
315 | 315 | */ |
316 | 316 | public function validateCustomerPaymentProfile($customerProfileId, $customerPaymentProfileId, $customerShippingAddressId, $cardCode, $validationMode = "testMode") |
317 | 317 | { |
@@ -328,9 +328,9 @@ discard block |
||
328 | 328 | * Get hosted profile page request token |
329 | 329 | * |
330 | 330 | * @param string $customerProfileId |
331 | - * @param mixed $settings |
|
331 | + * @param integer $settings |
|
332 | 332 | * |
333 | - * @return AuthorizeNetCIM_Response |
|
333 | + * @return AuthorizeNetARB_Response |
|
334 | 334 | */ |
335 | 335 | public function getHostedProfilePageRequest($customerProfileId, $settings=0) |
336 | 336 | { |