File tree Expand file tree Collapse file tree 5 files changed +7
-8
lines changed Expand file tree Collapse file tree 5 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 88
99namespace Omnipay \OnePay \Message ;
1010
11- use Omnipay \Common \Message \RedirectResponseInterface ;
1211use Omnipay \Common \Message \RequestInterface ;
12+ use Omnipay \Common \Message \RedirectResponseInterface ;
1313
1414/**
1515 * @author Vuong Minh <vuongxuongminh@gmail.com>
Original file line number Diff line number Diff line change 1212use Omnipay \OnePay \Tests \GatewayTestCase ;
1313use Omnipay \OnePay \Message \IncomingResponse ;
1414use Omnipay \OnePay \Message \PurchaseResponse ;
15- use Omnipay \Common \Message \RedirectResponseInterface ;
1615use Omnipay \Common \Exception \InvalidRequestException ;
16+ use Omnipay \Common \Message \RedirectResponseInterface ;
1717use Omnipay \Common \Exception \InvalidResponseException ;
1818
1919/**
Original file line number Diff line number Diff line change 1212use Omnipay \OnePay \Tests \GatewayTestCase ;
1313use Omnipay \OnePay \Message \IncomingResponse ;
1414use Omnipay \OnePay \Message \PurchaseResponse ;
15- use Omnipay \Common \Message \RedirectResponseInterface ;
1615use Omnipay \Common \Exception \InvalidRequestException ;
16+ use Omnipay \Common \Message \RedirectResponseInterface ;
1717use Omnipay \Common \Exception \InvalidResponseException ;
1818
1919/**
2020 * @author Vuong Minh <vuongxuongminh@gmail.com>
2121 * @since 1.0.0
2222 */
23- class DomesticGatewayTest extends GatewayTestCase
23+ class InternationalGatewayTest extends GatewayTestCase
2424{
2525 /**
2626 * @var \Omnipay\OnePay\DomesticGateway
@@ -87,7 +87,7 @@ public function testIncomingSuccess(string $requestMethod)
8787 'vpc_TransactionNo ' => '1625746 ' ,
8888 'vpc_TxnResponseCode ' => 0 ,
8989 'vpc_Version ' => 2 ,
90- 'vpc_SecureHash ' => '0331F9D8E0CD9A6BC581B74721658DFD9A5A219145F92DED700C13E4843BB3B0 '
90+ 'vpc_SecureHash ' => '0331F9D8E0CD9A6BC581B74721658DFD9A5A219145F92DED700C13E4843BB3B0 ' ,
9191 ]);
9292
9393 $ 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()
3838 'vpc_TransactionNo ' => 9 ,
3939 'vpc_TxnResponseCode ' => 10 ,
4040 'vpc_Version ' => 11 ,
41- 'vpc_SecureHash ' => 12
41+ 'vpc_SecureHash ' => 12 ,
4242 ]);
4343 $ this ->request = new IncomingRequest ($ client , $ request );
4444 }
@@ -59,6 +59,5 @@ public function testIncoming()
5959 $ this ->assertEquals (10 , $ data ['vpc_TxnResponseCode ' ]);
6060 $ this ->assertEquals (11 , $ data ['vpc_Version ' ]);
6161 $ this ->assertEquals (12 , $ data ['vpc_SecureHash ' ]);
62-
6362 }
6463}
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public function testPurchase()
3232 $ response = new QueryTransactionResponse ($ this ->getMockRequest (), [
3333 'vpc_MerchTxnRef ' => 123 ,
3434 'vpc_DRExists ' => 'Y ' ,
35- 'vpc_TxnResponseCode ' => 0
35+ 'vpc_TxnResponseCode ' => 0 ,
3636 ]);
3737
3838 $ this ->assertFalse ($ response ->isPending ());
You can’t perform that action at this time.
0 commit comments