Failing with message -> "netsTxnStatus":"1","netsTxnMsg":"Gateway Internal Error","stageRespCode":"0010-50002","actionCode":"1"
Notice: Portal maintenance 22 Apr 2019 to 24 Apr 2019. During this period, new user registration, profile update and application creation will not be accessible.
  1. Michael Ng
  2. eNETS
  3. Tuesday, 10 April 2018
I have been trying to integrate eNets payment into my Rails application but with no success so far. Followed the API guide but still getting the following error message:
Display in https://sit2.enets.sg/MerchantApp/sim/b2sTxnEndURL.jsp :
HEADER FAILED TO MATCH. Header received :4WwUeKifcYo4mf9mA+4sPZ/1G53efOSdUxUkZA1NxSE=headerGenrated : x89IGk4/X+OVg0/4Mr8f8xTT5dQsONpuFBXEqveiIM0=-------------Decoded Message :{"netsMid":"UMID_877772003","merchantTxnRef":"20180410 18:14:25.1561","merchantTxnDtm":"20180410 18:14:25.156","b2sTxnEndURL":"https://sit2.enets.sg/MerchantApp/sim/b2sTxnEndURL.jsp","netsTxnStatus":"1","netsTxnMsg":"Gateway Internal Error","stageRespCode":"0010-50002","actionCode":"1"}
 
txnReq: {"ss":"1","msg":{"netsMid":"UMID_877772003","tid":"","submissionMode":"B","txnAmount":"1000","merchantTxnRef":"20180410 18:14:25.1561","merchantTxnDtm":"20180410 18:14:25.156","paymentType":"SALE","currencyCode":"SGD","paymentMode":"","merchantTimeZone":"+8:00","b2sTxnEndURL":"https://sit2.enets.sg/MerchantApp/sim/b2sTxnEndURL.jsp","b2sTxnEndURLParam":"","s2sTxnEndURL":"https://sit2.enets.sg/MerchantApp/rest/s2sTxnEnd","s2sTxnEndURLParam":"","clientType":"W","supMsg":"","ipAddress":"","netsMidIndicator":"U","language":""}}new?schedule_id=1:336
mac: zVKAht16ZSngOfg9PRJbWR1AEp/tnh7JcU9Qxa6jdws=
 
I have tried running a check on hmac through here - https://api-developer.nets.com.sg/support/forum/hmac-generation-tips and found nothing wrong with the hmac. So I was thinking the problem lies with the b2sTxnEndURL or s2sTxnEndURL.
 
Would appreciate anyone's input. Thanks.
Comment
There are no comments currently.
Ron Too Accepted Answer Pending Moderation
0
Votes
Undo

Based on above data, merchantTxnRef exceeded 20 char.


 


Hi The best way to get this working is to use the sample html page


1) update merchantTxnRef


2) update hmac


and fire a transaction.


 


 -  merchantTxnRef can be in your own format(ACB1230001), but need to be less than 20 char.


- Based on the payload, the merchantTxnRef exceeded 20 char.


 


0010-50001 - related to HMAC, API key issues, and some data format issues


0010-50002 - related to data format.

Comment
There are no comments currently.
  1. more than a month ago
  2. eNETS
  3. # 1
ma zhiming Accepted Answer Pending Moderation
0
Votes
Undo

I have the same problem!!!


 


[ENETS SDK] DEBUG - [CardInputViewController] Month: 12


2018-05-17 15:51:39.575 USanSingapore[13812:2418719] Can't find keyplane that supports type 4 for keyboard iPhone-PortraitChoco-NumberPad; using 1336863583_PortraitChoco_iPhone-Simple-Pad_Default


[ENETS SDK] DEBUG - [CardInputViewController] Year: 20


[ENETS SDK] INFO - [NetworkHandler] Make 3D Payment


[ENETS SDK] INFO - [NetworkHandler] URL : https://uat2.enets.sg/GW2/credit/panSubmit


[ENETS SDK] DEBUG - [NetworkHandler] >> Request  : {"name":"","expiryMonth":"12","enc":"RSA2d251c684ccb248f7eab0bc12d697751f6ef0e2c7477918226fe4a07a4a581205611f23c0d7450212e7df3d72e1173deb2f213166fffad15bf24c00d6c62874bbee89f92d697550e79c2ba297bb1a885d8058d100361cb5c3a39b218e92cf4d25d3c4eb0b0fda6a2a037eed802b15e998c7f98a5d5733585a3ddf8788a21d43b66a0a6963d17ac61863584173a983e063cd5eb35c0981bd4179c75edd19934ac3894c4391ccc4bab4bdd57023e52df3c3be77c7091daee57246baa6fa06c79a8ddf4e23a300d160b6efb34c64c998be5968d4e16acd66231854c4c653c027a8583a9fa9141e2f2fdc50faddfe34e669a4d827d69aa6b36fc110364dc0a4aada4","clientInfo":"manufacturer:apple,model:iPhone,apiLevel:nil,osVersion:9.0,sdkVersion:1.2.1,merchantAppVersion:1.2","netsMid":"877772007","merchantTxnRef":"ACB1230001XXDD","expiryYear":"2020","txnRand":"42899034691760261","consumerEmail":"","paymentMode":"CC"}


[ENETS SDK] DEBUG - [NetworkHandler] Status code : 200


[ENETS SDK] DEBUG - [NetworkHandler] << Response : {"ss":"1","msg":{"netsMid":"UMID_877772003","merchantTxnRef":"ACB1230001XXDD","netsTxnStatus":"1","netsTxnMsg":"Gateway Internal Error","stageRespCode":"0041-50130","txnRand":"42899034691760261","actionCode":"2"}}


 


[ENETS SDK] INFO - [PaymentRequestManager] Result : nil Error : Optional()


2018-05-17 15:51:56.876 USanSingapore[13812:2418719] Response Code : 0041-50130


2018-05-17 15:51:56.877 USanSingapore[13812:2418719] Action Code : 2

Comment
There are no comments currently.
  1. more than a month ago
  2. eNETS
  3. # 2
Harrison Mays Accepted Answer Pending Moderation
0
Votes
Undo

Messages are now failing the parts of the words with the missing for no understanding parts only from the failed. Only by the messages that will receive from the movie review writing service about understand but sending messages will like to never sent.

Comment
There are no comments currently.
  1. more than a month ago
  2. eNETS
  3. # 3
Sunil Kumar Accepted Answer Pending Moderation
0
Votes
Undo

Hi I am getting stageRespCode"0010-50185"  and my txnReq is :


 


{"txnReq": {"ss": "1","msg": {"txnAmount": 100,"merchantTxnRef": "20190129 07:45:51.98","b2sTxnEndURL": "http://localhost:8080/b2sTxnEnd","s2sTxnEndURL": "http://localhost:8080/s2sTxnEnd","netsMid": "UMID_877772003","merchantTxnDtm": "20190204 14:26:51.989","submissionMode": "B","paymentType": "SALE","paymentMode": "CC","clientType": "H","currencyCode": "SG","merchantTimeZone": "GMT+5:30","netsMidIndicator": "U"}},"HMAC": "kXNhCtuf9H9MV5OTzl3VNkjYoHgj5WYSPO3Jdhdndg8=","KEY_ID": "154eb31c-0f72-45bb-9249-84a1036fd1ca"}


 


I am using the test secret key and test api key and test UMID which is given below:


Key ID: 154eb31c-0f72-45bb-9249-84a1036fd1ca Secret Key: 38a4b473-0295-439d-92e1-ad26a8c60279


UMID: UMID_877772003


Please anybody help me out, would be appreciable. 


 

Comment
There are no comments currently.
  1. more than a month ago
  2. eNETS
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.