Advertisement
Guest User

Untitled

a guest
Aug 10th, 2015
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. <form method="post" id="payu-payment-form" action="https://test.payu.in/_payment">
  2. <input type="hidden" name="hash" value="hash"/>
  3. <input type="hidden" name="key" value="marchentKey"/>
  4. <input type="hidden" name="txnid" value="asc123"/>
  5. <input type="hidden" name="amount" value="1000" />
  6. <input type="hidden" name="productinfo" value="Product 1"/>
  7. <input type="hidden" name="firstname" value="Amit" />
  8. <input type="hidden" name="email" value="abc@gmail.com" />
  9. <input type="hidden" name="phone" value="123423233" />
  10. <input type="hidden" name="surl" value="http://localhost/success"/>
  11. <input type="hidden" name="furl" value="http://localhost/fail"/>
  12. <input type="hidden" name="service_provider" value="payu_paisa" />
  13. <button class="" type="submit" formtarget="_blank" >Buy</button>
  14. </form>
  15.  
  16. var txnid='asc123';
  17. var amount=1000;
  18. var produnctinfo='Product 1';
  19. var firstname='Amit';
  20. var email='abc@gmail.com';
  21. var phone='123423233';
  22. var surl='http://localhost/success';
  23. var furl='http://localhost/fail';
  24. var service_provider='payu_paisa';
  25. var string = marchentKey +'|' +txnid+ '|' +amount+'|'+productinfo+'|'+firstname+'|'+email+'|'+phone+'|'+ surl +'|'+furl+'|'+service_provider+'|||||||'+salt;
  26. var hash=sha512(string);
  27.  
  28. <form method="post" id="payu-payment-form" action="https://test.payu.in/_payment">
  29. <input type="hidden" name="hash" value="hash"/>
  30. <input type="hidden" name="key" value="marchentKey"/>
  31. <input type="hidden" name="txnid" value="asc123"/>
  32. <input type="hidden" name="amount" value="1000" />
  33. <input type="hidden" name="productinfo" value="Product 1"/>
  34. <input type="hidden" name="firstname" value="Amit" />
  35. <input type="hidden" name="email" value="abc@gmail.com" />
  36. <input type="hidden" name="surl" value="http://localhost/success"/>
  37. <input type="hidden" name="furl" value="http://localhost/fail"/>
  38. <input type="hidden" name="phone" value="123423233" />
  39. <input type="hidden" name="udf1" value="payu_paisa" />
  40. <button class="" type="submit" formtarget="_blank" >Buy</button>
  41. </form>
  42.  
  43. hash=sha512(key|txnid|amount|productinfo|firstname|email|udf1||||||||||SALT);
  44.  
  45. var string = marchentKey +'|' +txnid+ '|' +amount+'|'+productinfo+'|'+firstname+'|'+email+'|||||||||||'+salt;
  46. var hash=sha512(string);
  47.  
  48. var string = marchentKey +'|' +txnid+ '|' +amount+'|'+productinfo+'|'+firstname+'|'+email+'|'+udf1+'|'+udf2+'|||||||||'+salt;
  49. var hash=sha512(string);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement