SHARE
TWEET

Untitled

a guest Jan 19th, 2020 128 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ############correct response
  2. [HTTP/1.1 200 OK 234ms]
  3. Preview Response payload   
  4. <html>
  5. <head>
  6. <script language='javascript'>
  7. function submit(){
  8. document.redirectForm.submit();
  9. }
  10. </script>
  11. </head>
  12. <body onLoad='submit()'>
  13. <form action='Http://' name='redirectForm' method='POST' target='_top'>
  14. <input type='hidden' name='Response.TransactionID' value='1577971596756' />
  15. <input type='hidden' name='Response.MessageID' value='1' />
  16. <input type='hidden' name='Response.MerchantID' value='1000004048' />
  17. <input type='hidden' name='Response.SecureHash' value='ff334e34aa6d4ca5f95eb7b087bcd70d625587a1d17ca18e04be39aa8d8c61f0' />
  18. <input type='hidden' name='Response.StatusCode' value='00040' />
  19. <input type='hidden' name='Response.StatusDescription' value='Invalid Security Code' />
  20. <input type='hidden' name='Response.Amount' value='2000' />
  21. <input type='hidden' name='Response.CurrencyISOCode' value='840' />
  22. </form>
  23. </body>
  24. </html>
  25.  
  26.  
  27.  
  28.  
  29. #####################python code
  30. post = {'data_set': '', 'reference': 'S00053-1', 'TransactionID': '151484000', 'MerchantID': '104048', 'Amount': '600000', 'CurrencyISOCode': '40', 'MessageID': '1', 'ItemID': '4048', 'Quantity': '1', 'Channel': '0', 'PaymentMethod': '1', 'Language': 'en', 'ThemeID': '1000000001', 'Version': '1.0', 'SecureHash': '350b7ada3f92763ddf02722053fed128e074', 'CardNumber': '4012001037141112', 'CardHolderName': 'Test', 'ExpiryDateYear': '22', 'ExpiryDateMonth': '01', 'SecurityCode': '684'}
  31. urequest = requests.post("https://srstaging.custom.com/CustomHandler", post)
  32. print(urequest)
  33.  
  34.  
  35.  
  36.  
  37.  
  38. #############uncorrect response
  39. <html>
  40. <head>
  41. <script language='javascript'>
  42. function submit(){
  43. document.redirectForm.submit();
  44. }
  45. </script>
  46. </head>
  47. <body onLoad='submit()'>
  48. <form action='SRPayMsgHandler' name='redirectForm' method='POST' target='_top'>
  49. <div id='dialog-message' style='margin-top: 25%;'>
  50. <p align='center'>
  51. <img src ='./images/pleaseWait.gif' align='middle'/>
  52. </p>
  53. <p align='center' style='font-size: 12px'></p>
  54. </div>
  55. <input type="hidden" name="CardNumber" value="401200103" />
  56. <input type="hidden" name="SecureHash" value="350b7a3f053fed128e074" />
  57. <input type="hidden" name="ItemID" value="048" />
  58. <input type="hidden" name="MessageID" value="1" />
  59. <input type="hidden" name="ExpiryDateYear" value="22" />
  60. <input type="hidden" name="MerchantID" value="104048" />
  61. <input type="hidden" name="ExpiryDateMonth" value="01" />
  62. <input type="hidden" name="CurrencyISOCode" value="40" />
  63. <input type="hidden" name="reference" value="S00053-1" />
  64. <input type="hidden" name="Version" value="1.0" />
  65. <input type="hidden" name="Quantity" value="1" />
  66. <input type="hidden" name="CardHolderName" value="Test" />
  67. <input type="hidden" name="Channel" value="0" />
  68. <input type="hidden" name="ThemeID" value="1000000001" />
  69. <input type="hidden" name="Language" value="en" />
  70. <input type="hidden" name="PaymentMethod" value="1" />
  71. <input type="hidden" name="Amount" value="600000" />
  72. <input type="hidden" name="TransactionID" value="1579421484000" />
  73. <input type="hidden" name="SecurityCode" value="684" />
  74. <input type="hidden" name="data_set" value="" />
  75. <input type='hidden' name='Loading' value='true' />
  76. </form>
  77. </body>
  78. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top