HEADER FAILED TO MATCH
  1. vidya sagar
  2. eNETS
  3. Wednesday, 13 December 2017

Hello,


Kindly help, I am getting the below error.


 


HEADER FAILED TO MATCH. Header received :ma9l+UsHnel9tmUrV4znhCGrNhhty1U64kG8LHUQ8kM=headerGenrated : 48gXrB1nBzR7BMelZQnoeqwQHJihnwFuRNYMz65Lhp4=-------------Decoded Message :{"netsMid":"UMID_887770001","merchantTxnRef":"20171212 18:00:00.00","merchantTxnDtm":"20171212 18:00:00.00","b2sTxnEndURL":"https://sit2.enets.sg/MerchantApp/sim/b2sTxnEndURL.jsp","netsTxnStatus":"1","netsTxnMsg":"Gateway Internal Error","stageRespCode":"0010-50002","actionCode":"1"}

Comment
There are no comments currently.
Ron Too Accepted Answer Pending Moderation
0
Votes
Undo

Hi,


The UAT is having some issue. The team is working on recovery.


 


 

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

Hi Vidya,


 


The team recovered the System, please proceed with testing.

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

HEADER FAILED TO MATCH. Header received :O8o14m0tHzIGdjZDghHc0XWukLn+Ik5AV6ssXs671HE=headerGenrated : SRIxSUk0pchUsnNnfFJYedzmZDq5J134QvaEgcLdjnk=-------------Decoded Message :{"netsMid":"UMID_877772003","merchantTxnRef":"20170605 10:26:51.98","merchantTxnDtm":"20180130 18:24:36.308","b2sTxnEndURL":"https://sit2.enets.sg/MerchantApp/sim/b2sTxnEndURL.jsp","netsTxnStatus":"1","netsTxnMsg":"Gateway Internal Error","stageRespCode":"0010-50002","actionCode":"1"}


 


i have generated hmac value based on key


 def _enets_generate_hmac_sign(self): """ Generate the shasign for incoming or outgoing communications. :return string: shasign """ sign = self.merchant_key + self.merchant_secret_key shasign = hashlib.sha512(sign.encode('utf-8')).hexdigest() print ('<<<<<<<<<<<<<<<<<<<< HMAC >>>>>>>>>>>>>>>.', shasign) return shasign


 


received hmacHMAC >>>>>>>>>>>>>>>. e6b53b0db19859c97583e84b9975a40d2713e8c910ae3a654b25dcb7d253299112869d34b29bb7c2f38ebc3a31c7b87e3b6a5f89a53709fc


i am receing these error.


 


 


could you please help me to resolve this.


 

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

Hi,


You have you tried:


- FAQ and guides? Most cases for failed payment submission should be resolved by following the FAQ and guides.


- what is the error display at the browser's console?


https://api-developer.nets.com.sg/support/forum/faq


https://api-developer.nets.com.sg/support/forum/implementation-guide


https://api-developer.nets.com.sg/support/forum/hmac-generation-tips


 

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

HEADER MATCH.


Header received :sxIq3h+qlWqF9p96N6QU5UMt/e9MRdTNXbrB83sLTNk=headerGenrated : sxIq3h+qlWqF9p96N6QU5UMt/e9MRdTNXbrB83sLTNk=


 


Header is matching but i not able to see the payment option.


The test Url is giving below error.


 


 


" This page isn’t working


uat-api.nets.com.sg is currently unable to handle this request.


HTTP ERROR 500 " 

 

Could please help me to resolve this.
Comment
There are no comments currently.
  1. more than a month ago
  2. eNETS
  3. # 5
Ron Too Accepted Answer Pending Moderation
0
Votes
Undo

Can you post your payload and UAT secret key here? 


I will generate a working html page.


 

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

Hello Ron,


Thanks for your support.


This is my Payload


{'msg': {'tid': '', 'language': 'en', 's2sTxnEndURL': 'http://localhost:1069/payment_success', 'txnAmount': '1000', 'netsMidIndicator': 'U', 'currencyCode': 'SGD', 'ipAddress': '127.0.0.1', 'submissionMode': 'B', 'merchantTxnRef': '/', 'paymentType': 'SALE', 'paymentMode': '', 'merchantTimeZone': '+8:00', 'netsMid': 'UMID_877772009', 'b2sTxnEndURL': 'http://localhost:1069/payment_success', 'merchantTxnDtm': '20180130 18:24:36.308', 'clientType': 'W'}, 'ss': '1'}


 


 


 

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

Hi Silver Star,


Cannot use 'localhost' in the payment URL, other than that i don't see any more issues with your payload.


 


1) Start integrating with a working payload provided. see following link


https://api-developer.nets.com.sg/support/forum/hmac-generation-tips


or email eNETS Test Support for the file.


 


2) Ensure your HMAC is correct based on the sample provided


 


 


Once HMAC is correct, and no data format issue, you should be able to see the payment option page.

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

Hi Ron Too ,


This is my Payload


Initialized bean with eNETS propertiesMersim : Util : generateSignature: payload :{"ss":"","msg":{"txnAmount":"1000","merchantTxnRef":"20180227 23:56:41.12","merchantTxnDtm":"20180227 23:56:43.38","b2sTxnEndURL":"https://uat2.enets.sg/MerchantApp/sim/b2sTxnEndURL.jsp","s2sTxnEndURL":"https://uat2.enets.sg/MerchantApp/rest/s2sTxnEnd","netsMid":"UMID_877772003","submissionMode":"B","paymentType":"SALE","clientType":"W","currencyCode":"SGD","merchantTimeZone":"+8:00","netsMidIndicator":"U","language":"en","ipAddress":"192.168.88.233"}},secretKey:38a4b473-0295-439d-92e1-ad26a8c60279Mersim : hmac genereted pFrD1w4nM7hY+N8mra6XxXUEUD2wi/3pmdIhuuWsa2M=


 


this is my error


HEADER MATCH. Header received :DbB9tpaY09gTA/xYR49zZowYBg1I//Q73DHkWRttf/k=headerGenrated : DbB9tpaY09gTA/xYR49zZowYBg1I//Q73DHkWRttf/k=-------------Decoded Message :{"msg":{"netsMid":"UMID_877772003","merchantTxnRef":"20180227 23:56:41.12","netsTxnStatus":"1","netsTxnMsg":"Gateway Internal Error","stageRespCode":"0042-50180","txnRand":"10765758698718378","actionCode":"1"}}


 


please help me .

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

Hi Ron Too ,


I am getting the below error. in Browser Console.


 


Loading failed for the   apps.js:256A form was submitted in the windows-1252 encoding which cannot encode all Unicode characters, so user input may get corrupted. To avoid this problem, the page should be changed so that the form is submitted in the UTF-8 encoding either by changing the encoding of the page itself to UTF-8 or by specifying accept-charset=utf-8 on the form element.  checkoutServlet:4:2      please help me . 

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

Hi Ron Too ,


 


secretKey:      38a4b473-0295-439d-92e1-ad26a8c60279


 


 hmac genereted        jR2xv1pSL7KjkJ4/re+BhTSjROb0P2wnWPb1xD2UreI=


I am getting the below error in Browser Console.


 


in sendPayLoad. gwdomain :https://sit2.enets.sg, apigwdomainhttps://uat-api.nets.com.sg:9065/GW2/TxnReqListenerSIT  {"ss":"1","msg":{"txnAmount":"1000","merchantTxnRef":"20180306 14:08:22.96","merchantTxnDtm":"20180306 14:08:24.93","b2sTxnEndURL":"https://sit2.enets.sg/MerchantApp/sim/b2sTxnEndURL.jsp","netsMid":"UMID_877772003","submissionMode":"B","paymentType":"SALE","clientType":"W","currencyCode":"SGD","merchantTimeZone":"+8:00","netsMidIndicator":"U","language":"en","ipaddress":"127.0.0.1:8080"}} 


 


 


Public-Key-Pins: The site specified a header that did not include a backup pin.[Learn More] TxnReqListenerSITin error condition**********


 


A form was submitted in the windows-1252 encoding which cannot encode all Unicode characters, so user input may get corrupted. To avoid this problem, the page should be changed so that the form is submitted in the UTF-8 encoding either by changing the encoding of the page itself to UTF-8 or by specifying accept-charset=utf-8 on the form element. 


Loading failed for the “https://sit2.enets.sg/GW2/js/apps.js”.

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

Hi,


Issue 1: 0042-50180


There was some issue last week with UAT, can try again?


 


Issue 2:Loading failed for the   apps.js:256A form was submitted in the windows-1252 encoding


Not too sure about the error. i can only advise you to start with a working html page first based on URL below.


https://api-developer.nets.com.sg/support/forum/hmac-generation-tips


 


You can email eNETS Test Support for more details.

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

Hi Roon,


   HEADER MATCH. Header received :fz3JPsxjjEDL6zncfZSFtu7Cll2HDMnulQaBwO756+w=headerGenrated : fz3JPsxjjEDL6zncfZSFtu7Cll2HDMnulQaBwO756+w=-------------Decoded Message :{"msg":{"netsMid":"UMID_877858000","merchantTxnRef":"20180216 14:31:43.46","netsMidIndicator":"U","netsTxnRef":"20180412184157219","submissionMode":"B","currencyCode":"SGD","merchantTxnDtm":"20180216 14:31:43.467","merchantTimeZone":"+8:00","paymentType":"SALE","clientType":"W","stageRespCode":"1099-03205","txnRand":"21901033255316979","actionCode":"2","netsTxnDtm":"20180412 18:41:57.050","netsTimeZone":"+08:00","netsTxnStatus":"1","netsTxnMsg":"System Error - Call Merchant.","netsAmountDeducted":0},"ss":"1"}


 


getting this one.


 


could you please tell me how to go further.


 


Regards,


 


SilvestarJ.

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

"stageRespCode":"1099-03205" means duplicated transaction error. 


Please use a different merchant reference number.


Please note merchant reference number should be unique for every transaction. 


Its critical for Operation support as well as investigation will be based on merchant reference number and UMID.


 

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

Hello,


 


Please tell me what is the netsMid? 


Is it NETS MID or UMID?


Please help me. I am stuck here.

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

H Ankit,


referring to sample code, netsMid UMID_887770001.


Its the UMID.


{"ss":"1","msg":{"netsMid":"UMID_887770001","tid":"","submissionMode":"B","txnAmount":"1000","merchantTxnRef":"2017060510265198","merchantTxnDtm":"20170605 10:36:51.989","paymentType":"SALE","currencyCode":"SGD","paymentMode


 


 


NETS MID refers to Credit and Debit MID. 

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

Hai Team,


I got some error response. I attached my code here. Please assist me.


My txnReq is


{ "ss": "1", "msg": { "netsMid": "UMID_1528860449", "tid": "", "txnAmount": "12", "merchantTxnRef": "20180613 05:27:29", "merchantTxnDtm": "20180613 05:27:29", "submissionMode": "B", "paymentType": "SALE", "clientType": "W", "paymentMode": "", "currencyCode": "SGD", "merchantTimeZone": "+8:00", "netsMidIndicator": "U", "b2sTxnEndURL": "https://sit2.enets.sg/MerchantApp/sim/b2sTxnEndURL.jsp", "b2sTxnEndURLParam": "", "s2sTxnEndURL": "https://sit2.enets.sg/MerchantApp/rest/s2sTxnEnd", "s2sTxnEndURLParam": "", "supMsg": "", "ipAddress": "118.201.98.241", "language": "en" } }


secretKey 


faefaa60-ebe9-45ef-9ef2-47d711cfa688


 


my hmac value


1V51dIAo6mV2hwE8gSgVKugds3M1BIzkgb2quDPRvHM=


 


My response code is 


HEADER FAILED TO MATCH. Header received :3jDUIYJN/pWk0RVEyYPO8rj+zISwPwVW/QPrZ0ZCPOk=headerGenrated : uy96UKKNQA/PZlErRb0yFJ7ZkPf2lKp2xTmaBfKRHII=-------------Decoded Message :{"netsMid":"UMID_1528860449","merchantTxnRef":"20180613 05:27:29","merchantTxnDtm":"20180613 05:27:29","b2sTxnEndURL":"https://sit2.enets.sg/MerchantApp/sim/b2sTxnEndURL.jsp","netsTxnStatus":"1","netsTxnMsg":"Gateway Internal Error","stageRespCode":"0010-50002","actionCode":"1"}

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

Hi,


I came across this error.


 


HEADER FAILED TO MATCH. Header received :l/S2muCHjWT/VV6+kvuXWDPtgabmIIjbozm1AYCcQBI=headerGenrated : NqGWcdgtuW3RBCdMqNGjBgL67GGHje13MBg+i91wPcc=-------------Decoded Message :{"ss":"1","msg":{"netsMid":"UMID_867552000","merchantTxnRef":"TT20181205171654844","merchantTxnDtm":"20181205 17:16:54.844","paymentType":"SALE","currencyCode":"SGD","netsTxnRef":"20181205171657504","netsTxnDtm":"20181205 17:16:57.000","paymentMode":"DD","merchantTimeZone":"+8:00","netsTxnStatus":"1","netsTxnMsg":"Transaction Failed","netsAmountDeducted":"0","netsValueDate":"05/12/2018","stageRespCode":"0006-50504","txnRand":"20181205171655336","actionCode":"1","netsMidIndicator":"U"}}


 


 


txnReq: {"ss":"1","msg":{"netsMid":"UMID_867552000","tid":"","submissionMode":"B","txtAmount":"1000","merchantTxnRef":"TT20181205171654844","merchantTxnDtm":"20181205 17:16:54.844","paymentType":"SALE","currencyCode":"SGD","paymentMode":"DD","merchantTimeZone":"+8:00","b2sTxnEndURL":"https://sit2.enets.sg/MerchantApp/sim/b2sTxnEndURL.jsp","s2sTxnEndURL":"https://sit2.enets.sg/MerchantApp/rest/s2sTxnEnd","clientType":"H","netsMidIndicator":"U","ipAddress":"150.10.50.131","language":"en"}}


 


Secret Key: f515d3b7-5447-44ba-9f83-6a23ccca2c4e


 


Key ID: b8b00c7c-1334-499f-94fb-eada143b95cb


 


hmac: uHSKSQ3U1ZZTPbVspzPvUVfLhCzVgVNfYBGUiLTeDv0=


 


Please help.


Thanks.

Comment
There are no comments currently.
  1. 5 days ago
  2. eNETS
  3. # 18
  • Page :
  • 1


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