Hi, I am trying to integrate Authorize.net SIM API into django views.
I am facing a problem in the fingerprint generation. I am repeatedly getting that the fingerprint generated doesn't match the one the server generates. I have generated the md5 hash with the key provided as specified in the SIM documentation. Here is the code: params = { > 'x_login' : '4ffrBT36La', > 'x_amount' : '100.00', > 'x_show_form' : 'PAYMENT_FORM', > 'x_type' : 'AUTH_CAPTURE', > 'x_method' : 'CC', > 'x_fp_sequence' : '123', > 'x_version' : '3.1', > 'x_relay_response' : 'FALSE', > } > params['x_fp_timestamp'] = int(time.time()) > > msg = '^'.join([params['x_login'], > str(params['x_fp_sequence']), > str(params['x_fp_timestamp']), > str(params['x_amount']) > ])+'^' > > fingerprint = hmac.new('9LyEU8t87h9Hj49Y',msg).hexdigest() > > I would be glad if some one that has dealt with this earlier, points out what the glitch is. Thanks in advance. -- Regards, Lakshman becomingguru.com lakshmanprasad.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---