globalpayments / globalpayments-3ds-js

Helper library for leveraging 3DSecure 2 for Strong Customer Authentication (SCA)
https://www.npmjs.com/package/globalpayments-3ds
GNU General Public License v2.0
5 stars 10 forks source link

HPP 3d v2 output is encrypted #18

Open Jey-Vclub opened 3 years ago

Jey-Vclub commented 3 years ago

hello there

more than 4 days i did followup with ecomsupport@globalpay.com but, not even single response so, posting here. I'm using asp.net 4.6 and your SDK 1.6.9 in our project I'm using your sandbox environment to popup HPP there I'm passing all necessary fields in json format, while receiving the response all the values are encrypted like below. Now tell me

  1. why im receiving a response in all encrypted format?
  2. how do I receive a response in a readable format or how do i decrypt the response?

{"CAVV":"","SHIPPING_CODE":"NTAwMDE=","SRD":"VGN0YlpqdnlQcFBINGxkZw==","CVNRESULT":"TQ==","HPP_CUSTOMER_PHONENUMBER_MOBILE":"NDR8MDcxMjM0NTY3ODk=","HPP_SHIPPING_STREET3":"SG91c2UgOTYz","HPP_SHIPPING_STREET1":"QXBhcnRtZW50IDgyNQ==","PASREF":"MTYwNjQzMDUzMDY0NTYwNDI=","HPP_SHIPPING_STREET2":"Q29tcGxleCA3NDE=","MESSAGE":"WyB0ZXN0IHN5c3RlbSBdIEFVVEhPUklTRUQ=","BILLING_CODE":"VzUgOUhS","DS_TRANS_ID":"MDA0ODM5OWYtMGQ5My00YTc1LTlhMGYtZGQ5Zjk1OWZhNzNl","ACCOUNT":"aW50ZXJuZXQ=","AVSPOSTCODERESULT":"TQ==","AMOUNT":"MTk5OQ==","TIMESTAMP":"MjAyMDExMjYyMjQxNTQ=","pas_uuid":"MTYyNTFkNGEtYjlkYi00YjdlLTgxOWUtODk4MzIyOTI1MjJj","HPP_BILLING_STREET3":"VW5pdCA0","HPP_ADDRESS_MATCH_INDICATOR":"RkFMU0U=","HPP_BILLING_STREET2":"SG91c2UgNDU2","AUTHCODE":"MTIzNDU=","HPP_BILLING_STREET1":"RmxhdCAxMjM=","HPP_BILLING_CITY":"SGFsaWZheA==","HPP_SHIPPING_COUNTRY":"ODQw","AVSADDRESSRESULT":"TQ==","HPP_SHIPPING_POSTALCODE":"NTAwMDE=","AUTHENTICATION_VALUE":"QUprQkFXaDJOUUFBQUFmUGw0TXhkQUFBQUFBPQ==","HPP_BILLING_POSTALCODE":"VzUgOUhS","ECI":"MDU=","HPP_BILLING_COUNTRY":"ODI2","MESSAGE_VERSION":"Mi4xLjA=","BATCHID":"ODY2OTA5","XID":"","SHA1HASH":"Yjc4NzdjMDEzYTAyY2I4YzRkYjBhOTFjY2I3NmU5ZDlmOWM2ZDM1YQ==","HPP_SHIPPING_CITY":"Q2hpY2Fnbw==","ORDER_ID":"NHFSR19zWHBWMEtXUkFWUGRTdzhOQQ==","BILLING_CO":"ODI2","HPP_SHIPPING_STATE":"SUw=","HPP_CUSTOMER_EMAIL":"amFtZXMubWFzb25AZXhhbXBsZS5jb20=","RESULT":"MDA=","SHIPPING_CO":"ODQw","MERCHANT_ID":"IRemovedIT"}

x-fran commented 3 years ago

Yeah, the support is pretty crappy. In the forest of the API's they have I think they're all lost. Even the documentation for 3DSv2 is either incomplete or incorrect. Anyways ... this looks like is Json encoded. I'm not familiar with ASP but I'm pretty sure there is a way to decode it.