Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form method="post" id="payu-payment-form" action="https://test.payu.in/_payment">
- <input type="hidden" name="hash" value="hash"/>
- <input type="hidden" name="key" value="marchentKey"/>
- <input type="hidden" name="txnid" value="asc123"/>
- <input type="hidden" name="amount" value="1000" />
- <input type="hidden" name="productinfo" value="Product 1"/>
- <input type="hidden" name="firstname" value="Amit" />
- <input type="hidden" name="email" value="abc@gmail.com" />
- <input type="hidden" name="phone" value="123423233" />
- <input type="hidden" name="surl" value="http://localhost/success"/>
- <input type="hidden" name="furl" value="http://localhost/fail"/>
- <input type="hidden" name="service_provider" value="payu_paisa" />
- <button class="" type="submit" formtarget="_blank" >Buy</button>
- </form>
- var txnid='asc123';
- var amount=1000;
- var produnctinfo='Product 1';
- var firstname='Amit';
- var email='abc@gmail.com';
- var phone='123423233';
- var surl='http://localhost/success';
- var furl='http://localhost/fail';
- var service_provider='payu_paisa';
- var string = marchentKey +'|' +txnid+ '|' +amount+'|'+productinfo+'|'+firstname+'|'+email+'|'+phone+'|'+ surl +'|'+furl+'|'+service_provider+'|||||||'+salt;
- var hash=sha512(string);
- <form method="post" id="payu-payment-form" action="https://test.payu.in/_payment">
- <input type="hidden" name="hash" value="hash"/>
- <input type="hidden" name="key" value="marchentKey"/>
- <input type="hidden" name="txnid" value="asc123"/>
- <input type="hidden" name="amount" value="1000" />
- <input type="hidden" name="productinfo" value="Product 1"/>
- <input type="hidden" name="firstname" value="Amit" />
- <input type="hidden" name="email" value="abc@gmail.com" />
- <input type="hidden" name="surl" value="http://localhost/success"/>
- <input type="hidden" name="furl" value="http://localhost/fail"/>
- <input type="hidden" name="phone" value="123423233" />
- <input type="hidden" name="udf1" value="payu_paisa" />
- <button class="" type="submit" formtarget="_blank" >Buy</button>
- </form>
- hash=sha512(key|txnid|amount|productinfo|firstname|email|udf1||||||||||SALT);
- var string = marchentKey +'|' +txnid+ '|' +amount+'|'+productinfo+'|'+firstname+'|'+email+'|||||||||||'+salt;
- var hash=sha512(string);
- var string = marchentKey +'|' +txnid+ '|' +amount+'|'+productinfo+'|'+firstname+'|'+email+'|'+udf1+'|'+udf2+'|||||||||'+salt;
- var hash=sha512(string);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement