Hash in coldfusion for secure payment gateway

后端 未结 2 1272
遥遥无期
遥遥无期 2021-01-22 01:41

I am trying to create a hash password in coldfusion for our secure payment gateway to accept a transaction.

Unfortunately the payment gateway is refusing to accept my ge

2条回答
  •  耶瑟儿~
    2021-01-22 02:37

    The code should have functioned the way it is, but in my opinion it's better to create the value to hash as one big string. Appending to strings is 'costly' because each time you add to a string a new string is created and the old one destroyed. If you're processing one transaction a minute you'd never notice a difference, but it is good practice either way. I would use.

     
    

    Now you may have an issue getting a HASH in PHP to match a HASH in ColdFusion, but that's a separate issue.

    Sample

    
    
    
    
    

    Returns

    92A14E1D03833CB3FD6932A8E240861CDEC66E46723A544DFBC3C592D5EE7E66
    

提交回复
热议问题