3
3
namespace Treestoneit \LaravelConvergeApi ;
4
4
5
5
use Illuminate \Support \Facades \Config ;
6
- use wwwroth \Converge \Converge as ConvergePHP ;
7
6
8
7
class Converge
9
8
{
@@ -12,11 +11,11 @@ class Converge
12
11
* Full documentation can be found here:
13
12
* @link https://developer.elavon.com/na/docs/converge/1.0.0/integration-guide/transaction_types/credit_card
14
13
*/
15
- public ConvergePHP $ converge ;
14
+ public ConvergeRequest $ converge ;
16
15
17
16
public function __construct ()
18
17
{
19
- $ this ->converge = new ConvergePHP ([
18
+ $ this ->converge = new ConvergeRequest ([
20
19
'merchant_id ' => Config::get ('converge-api.merchant_id ' ),
21
20
'user_id ' => Config::get ('converge-api.user_id ' ),
22
21
'pin ' => Config::get ('converge-api.pin ' ),
@@ -32,7 +31,6 @@ public function __construct()
32
31
* @param array $params
33
32
*
34
33
* @return array
35
- * @throws \wwwroth\Converge\Exceptions\ConvergeException
36
34
*/
37
35
public function authOnly (array $ params ): array
38
36
{
@@ -47,7 +45,6 @@ public function authOnly(array $params): array
47
45
* @param array $params
48
46
*
49
47
* @return array
50
- * @throws \wwwroth\Converge\Exceptions\ConvergeException
51
48
*/
52
49
public function sale (array $ params ): array
53
50
{
@@ -62,7 +59,6 @@ public function sale(array $params): array
62
59
* @param array $params
63
60
*
64
61
* @return array
65
- * @throws \wwwroth\Converge\Exceptions\ConvergeException
66
62
*/
67
63
public function verify (array $ params ): array
68
64
{
@@ -77,7 +73,6 @@ public function verify(array $params): array
77
73
* @param array $params
78
74
*
79
75
* @return array
80
- * @throws \wwwroth\Converge\Exceptions\ConvergeException
81
76
*/
82
77
public function balanceInquiry (array $ params ): array
83
78
{
@@ -94,7 +89,6 @@ public function balanceInquiry(array $params): array
94
89
* @param array $params
95
90
*
96
91
* @return array
97
- * @throws \wwwroth\Converge\Exceptions\ConvergeException
98
92
*/
99
93
public function return (array $ params ): array
100
94
{
@@ -109,7 +103,6 @@ public function return(array $params): array
109
103
* @param array $params
110
104
*
111
105
* @return array
112
- * @throws \wwwroth\Converge\Exceptions\ConvergeException
113
106
*/
114
107
public function void (array $ params ): array
115
108
{
@@ -124,7 +117,6 @@ public function void(array $params): array
124
117
* @param array $params
125
118
*
126
119
* @return array
127
- * @throws \wwwroth\Converge\Exceptions\ConvergeException
128
120
*/
129
121
public function complete (array $ params ): array
130
122
{
@@ -141,7 +133,6 @@ public function complete(array $params): array
141
133
* @param array $params
142
134
*
143
135
* @return array
144
- * @throws \wwwroth\Converge\Exceptions\ConvergeException
145
136
*/
146
137
public function delete (array $ params ): array
147
138
{
@@ -156,7 +147,6 @@ public function delete(array $params): array
156
147
* @param array $params
157
148
*
158
149
* @return array
159
- * @throws \wwwroth\Converge\Exceptions\ConvergeException
160
150
*/
161
151
public function updateTip (array $ params ): array
162
152
{
@@ -171,7 +161,6 @@ public function updateTip(array $params): array
171
161
* @param array $params
172
162
*
173
163
* @return array
174
- * @throws \wwwroth\Converge\Exceptions\ConvergeException
175
164
*/
176
165
public function signature (array $ params ): array
177
166
{
@@ -186,7 +175,6 @@ public function signature(array $params): array
186
175
* @param array $params
187
176
*
188
177
* @return array
189
- * @throws \wwwroth\Converge\Exceptions\ConvergeException
190
178
*/
191
179
public function addRecurring (array $ params ): array
192
180
{
@@ -201,7 +189,6 @@ public function addRecurring(array $params): array
201
189
* @param array $params
202
190
*
203
191
* @return array
204
- * @throws \wwwroth\Converge\Exceptions\ConvergeException
205
192
*/
206
193
public function updateRecurring (array $ params ): array
207
194
{
@@ -216,7 +203,6 @@ public function updateRecurring(array $params): array
216
203
* @param array $params
217
204
*
218
205
* @return array
219
- * @throws \wwwroth\Converge\Exceptions\ConvergeException
220
206
*/
221
207
public function deleteRecurring (array $ params ): array
222
208
{
@@ -231,7 +217,6 @@ public function deleteRecurring(array $params): array
231
217
* @param array $params
232
218
*
233
219
* @return array
234
- * @throws \wwwroth\Converge\Exceptions\ConvergeException
235
220
*/
236
221
public function recurringSale (array $ params ): array
237
222
{
@@ -246,7 +231,6 @@ public function recurringSale(array $params): array
246
231
* @param array $params
247
232
*
248
233
* @return array
249
- * @throws \wwwroth\Converge\Exceptions\ConvergeException
250
234
*/
251
235
public function addInstallment (array $ params ): array
252
236
{
@@ -261,7 +245,6 @@ public function addInstallment(array $params): array
261
245
* @param array $params
262
246
*
263
247
* @return array
264
- * @throws \wwwroth\Converge\Exceptions\ConvergeException
265
248
*/
266
249
public function updateInstallment (array $ params ): array
267
250
{
@@ -276,7 +259,6 @@ public function updateInstallment(array $params): array
276
259
* @param array $params
277
260
*
278
261
* @return array
279
- * @throws \wwwroth\Converge\Exceptions\ConvergeException
280
262
*/
281
263
public function deleteInstallment (array $ params ): array
282
264
{
@@ -291,7 +273,6 @@ public function deleteInstallment(array $params): array
291
273
* @param array $params
292
274
*
293
275
* @return array
294
- * @throws \wwwroth\Converge\Exceptions\ConvergeException
295
276
*/
296
277
public function installmentSale (array $ params ): array
297
278
{
@@ -306,7 +287,6 @@ public function installmentSale(array $params): array
306
287
* @param array $params
307
288
*
308
289
* @return array
309
- * @throws \wwwroth\Converge\Exceptions\ConvergeException
310
290
*/
311
291
public function queryToken (array $ params ): array
312
292
{
@@ -321,7 +301,6 @@ public function queryToken(array $params): array
321
301
* @param array $params
322
302
*
323
303
* @return array
324
- * @throws \wwwroth\Converge\Exceptions\ConvergeException
325
304
*/
326
305
public function updateToken (array $ params ): array
327
306
{
@@ -336,7 +315,6 @@ public function updateToken(array $params): array
336
315
* @param array $params
337
316
*
338
317
* @return array
339
- * @throws \wwwroth\Converge\Exceptions\ConvergeException
340
318
*/
341
319
public function getToken (array $ params ): array
342
320
{
@@ -351,7 +329,6 @@ public function getToken(array $params): array
351
329
* @param array $params
352
330
*
353
331
* @return array
354
- * @throws \wwwroth\Converge\Exceptions\ConvergeException
355
332
*/
356
333
public function deleteToken (array $ params ): array
357
334
{
@@ -366,7 +343,6 @@ public function deleteToken(array $params): array
366
343
* @param array $params
367
344
*
368
345
* @return array
369
- * @throws \wwwroth\Converge\Exceptions\ConvergeException
370
346
*/
371
347
public function custom (string $ transactionType , array $ params ): array
372
348
{
0 commit comments