@@ -92,8 +92,8 @@ public function testParsePaymentResponseSuccessfulAPI()
9292 {
9393 $ body = "{ \"acquirer-details \":{ \"dynamic-descriptor \": \"test \", \"eci-sli \": \"648 \", \"result-code \": \"000 \", \"status-description \": \"Approved \", " .
9494 "\"status-text \": \"Approved \", \"terminal-mid \": \"5800978 \", \"transaction-id \": \"1899493845214315 \"}, \"error \":{}, " .
95- "\"gw \":{ \"gateway-transaction-id \": \"8a9bed66-8412-494f-9866-2c26b5ceee62 \", \"status-code \" :7, \" status-text \": \"SUCCESS \", " .
96- "\"original-gateway-transaction-id \": \"orig-aaa \", \"parent-gateway-transaction-id \": \"parent-aaa \"}, " .
95+ "\"gw \":{ \"gateway-transaction-id \": \"8a9bed66-8412-494f-9866-2c26b5ceee62 \", \"merchant-transaction-id \": \"87d53472ba27fde33ec03e2f5ca6137a \", " .
96+ "\"status-code \" :7, \" status-text \" : \" SUCCESS \" , \" original-gateway-transaction-id \": \"orig-aaa \", \"parent-gateway-transaction-id \": \"parent-aaa \"}, " .
9797 "\"warnings \":[ \"Soon counters will be exceeded for the merchant \", \"Soon counters will be exceeded for the account \", " .
9898 "\"Soon counters will be exceeded for the terminal group \", \"Soon counters will be exceeded for the terminal \"]} \n" ;
9999
@@ -111,6 +111,7 @@ public function testParsePaymentResponseSuccessfulAPI()
111111
112112 $ this ->assertNotNull ($ parsedResponse ->gw );
113113 $ this ->assertEquals ("8a9bed66-8412-494f-9866-2c26b5ceee62 " , $ parsedResponse ->gw ->gatewayTransactionId );
114+ $ this ->assertEquals ("87d53472ba27fde33ec03e2f5ca6137a " , $ parsedResponse ->gw ->merchantTransactionId );
114115 $ this ->assertEquals ("orig-aaa " , $ parsedResponse ->gw ->originalGatewayTransactionId );
115116 $ this ->assertEquals ("parent-aaa " , $ parsedResponse ->gw ->parentGatewayTransactionId );
116117 $ this ->assertEquals (Status::SUCCESS , $ parsedResponse ->gw ->statusCode );
0 commit comments