File tree 5 files changed +7
-8
lines changed
5 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 8
8
9
9
namespace Omnipay \OnePay \Message ;
10
10
11
- use Omnipay \Common \Message \RedirectResponseInterface ;
12
11
use Omnipay \Common \Message \RequestInterface ;
12
+ use Omnipay \Common \Message \RedirectResponseInterface ;
13
13
14
14
/**
15
15
* @author Vuong Minh <vuongxuongminh@gmail.com>
Original file line number Diff line number Diff line change 12
12
use Omnipay \OnePay \Tests \GatewayTestCase ;
13
13
use Omnipay \OnePay \Message \IncomingResponse ;
14
14
use Omnipay \OnePay \Message \PurchaseResponse ;
15
- use Omnipay \Common \Message \RedirectResponseInterface ;
16
15
use Omnipay \Common \Exception \InvalidRequestException ;
16
+ use Omnipay \Common \Message \RedirectResponseInterface ;
17
17
use Omnipay \Common \Exception \InvalidResponseException ;
18
18
19
19
/**
Original file line number Diff line number Diff line change 12
12
use Omnipay \OnePay \Tests \GatewayTestCase ;
13
13
use Omnipay \OnePay \Message \IncomingResponse ;
14
14
use Omnipay \OnePay \Message \PurchaseResponse ;
15
- use Omnipay \Common \Message \RedirectResponseInterface ;
16
15
use Omnipay \Common \Exception \InvalidRequestException ;
16
+ use Omnipay \Common \Message \RedirectResponseInterface ;
17
17
use Omnipay \Common \Exception \InvalidResponseException ;
18
18
19
19
/**
20
20
* @author Vuong Minh <vuongxuongminh@gmail.com>
21
21
* @since 1.0.0
22
22
*/
23
- class DomesticGatewayTest extends GatewayTestCase
23
+ class InternationalGatewayTest extends GatewayTestCase
24
24
{
25
25
/**
26
26
* @var \Omnipay\OnePay\DomesticGateway
@@ -87,7 +87,7 @@ public function testIncomingSuccess(string $requestMethod)
87
87
'vpc_TransactionNo ' => '1625746 ' ,
88
88
'vpc_TxnResponseCode ' => 0 ,
89
89
'vpc_Version ' => 2 ,
90
- 'vpc_SecureHash ' => '0331F9D8E0CD9A6BC581B74721658DFD9A5A219145F92DED700C13E4843BB3B0 '
90
+ 'vpc_SecureHash ' => '0331F9D8E0CD9A6BC581B74721658DFD9A5A219145F92DED700C13E4843BB3B0 ' ,
91
91
]);
92
92
93
93
$ response = call_user_func ([$ this ->gateway , $ requestMethod ])->send ();
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public function setUp()
38
38
'vpc_TransactionNo ' => 9 ,
39
39
'vpc_TxnResponseCode ' => 10 ,
40
40
'vpc_Version ' => 11 ,
41
- 'vpc_SecureHash ' => 12
41
+ 'vpc_SecureHash ' => 12 ,
42
42
]);
43
43
$ this ->request = new IncomingRequest ($ client , $ request );
44
44
}
@@ -59,6 +59,5 @@ public function testIncoming()
59
59
$ this ->assertEquals (10 , $ data ['vpc_TxnResponseCode ' ]);
60
60
$ this ->assertEquals (11 , $ data ['vpc_Version ' ]);
61
61
$ this ->assertEquals (12 , $ data ['vpc_SecureHash ' ]);
62
-
63
62
}
64
63
}
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public function testPurchase()
32
32
$ response = new QueryTransactionResponse ($ this ->getMockRequest (), [
33
33
'vpc_MerchTxnRef ' => 123 ,
34
34
'vpc_DRExists ' => 'Y ' ,
35
- 'vpc_TxnResponseCode ' => 0
35
+ 'vpc_TxnResponseCode ' => 0 ,
36
36
]);
37
37
38
38
$ this ->assertFalse ($ response ->isPending ());
You can’t perform that action at this time.
0 commit comments