Guest User

Untitled

a guest
Oct 20th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.69 KB | None | 0 0
  1. <form id="form_52393" class="appnitro" action="../application.php"
  2. method="post">
  3. <div class="form_description">
  4. <h2>Finance Application Form</h2>
  5. Enter the course name, its price, the term of you finance and your
  6. deposit. You will then be reidrected to an online application form to
  7. complete the process.
  8.  
  9. </div>
  10. <ul>
  11. <li><label class="description" for="action">action</label>
  12. <div><input id="element_9" class="element text medium"
  13. maxlength="255" name="action" type="hidden"
  14. value="credit_application_link" /></div></li>
  15. <li id="li_5"><label class="description"
  16. for="Identification[api_key]">Identification[api_key] </label>
  17. <div><input id="element_5" class="element text medium"
  18. maxlength="255" name="Identification[api_key]" type="hidden"
  19. value="be803c55eeaf79c89b6ff46ac6a9a039" /></div></li>
  20. <li id="li_6"><label class="description"
  21. for="Identification[InstallationID]">Identification[InstallationID]
  22. </label>
  23. <div><input id="element_6" class="element text medium"
  24. maxlength="255" name="Identification[InstallationID]" type="hidden"
  25. value="13161" /></div></li>
  26. <li><label class="description"
  27. for="Identification[RetailerUniqueRef]">
  28. Identification[RetailerUniqueRef]
  29. </label>
  30. <div><input id="element_7" class="element text medium"
  31. maxlength="255" name="Identification[RetailerUniqueRef]"
  32. type="hidden" value="test999" /></div></li>
  33. <li id="li_1"><label class="description"
  34. for="Goods[Description]">Course Name </label>
  35. <div><input id="element_1" class="element text medium"
  36. maxlength="255" name="Goods[Description]" type="text" value="" />
  37. </div></li>
  38. <li id="li_10"><label class="description"
  39. for="Goods[Price]">Price </label>
  40. <span class="symbol">£</span><input id="element_12_1" class="element
  41. text currency" name="Goods[Price]" size="10" type="text" value="" />
  42. .
  43. <label for="element_12_1">Pounds</label></li>
  44. <li id="li_4"><label class="description"
  45. for="Finance[Code]">Finance Type </label>
  46. <div><select id="element_4" class="element select medium"
  47. name="Finance[Code]">
  48. <option selected="selected" value=""></option>
  49. <option value="ONIF6">Interest Free Credit (0% APR) 6 month
  50. term</option>
  51. <option value="ONIF9">Interest Free Credit (0% APR) 9 month
  52. term</option>
  53. <option value="ONIF10">Interest Free Credit (0% APR) 10 month
  54. term</option>
  55. <option value="ONIF12">Interest Free Credit (0% APR) 12 month
  56. term</option>
  57. <option value="ONIF18">Interest Free Credit (0% APR) 18 month
  58. term</option>
  59. <option value="ONIF24">Interest Free Credit (0% APR) 24 month
  60. term</option>
  61. <option value="ONIF36">Interest Free Credit (0% APR) 36 month
  62. term</option>
  63. <option value="ONIB12-12.9">Low Rate Credit (12.9% APR) 12 month
  64. term</option>
  65. <option value="ONIB18-12.9">Low Rate Credit (12.9% APR) 18 month
  66. term</option>
  67. <option value="ONIB24-12.9">Low Rate Credit (12.9% APR) 24 month
  68. term</option>
  69. <option value="ONIB36-12.9">Low Rate Credit (12.9% APR) 36 month
  70. term</option>
  71. <option value="ONIB12-24.9">Classic Credit (24.9(% APR) 12 month
  72. term</option>
  73. <option value="ONIB18-24.9">Classic Credit (24.9(% APR) 18 month
  74. term</option>
  75. <option value="ONIB24-24.9">Classic Credit (24.9(% APR) 24 month
  76. term</option>
  77. <option value="ONIB36-24.9">Classic Credit (24.9(% APR) 36 month
  78. term</option>
  79. </select></div></li>
  80. <li id="li_12"><label class="description"
  81. for="Finance[Deposit]">Price </label>
  82. <span class="symbol">£</span><input id="element_12_1" class="element
  83. text currency" name="Finance[Deposit]" size="10" type="text" value=""
  84. /> .
  85. <label for="element_12_1">Pounds</label></li>
  86. <li class="buttons"><input name="form_id" type="hidden"
  87. value="52393" /><input id="saveForm" class="button_text"
  88. name="submit" type="submit" value="Submit" /></li>
  89. </ul>
  90. </form>
  91.  
  92. <?php
  93. $interface = "https://test.dekopay.com:3343/";
  94. $postFields = Array(
  95. "action" => "credit_application_link",
  96. "Identification[api_key]" => "be803c55eeaf79c89b6ff46ac6a9a039",
  97. "Identification[InstallationID]" => "13161",
  98. "Identification[RetailerUniqueRef]" => uniqid(),
  99. "Goods[Description]" => "",
  100. "Goods[Price]" => "",
  101. "Finance[Code]" => "",
  102. "Finance[Deposit]" => "",
  103. );
  104.  
  105. function httpPost($interface, $postFields)
  106. {
  107. $curlSession = curl_init();
  108. curl_setopt($curlSession, CURLOPT_URL, $interface);
  109. curl_setopt($curlSession, CURLOPT_HEADER, 0);
  110. curl_setopt($curlSession, CURLOPT_SSL_VERIFYPEER, 0);
  111. curl_setopt($curlSession, CURLOPT_POST, 1);
  112. curl_setopt($curlSession, CURLOPT_POSTFIELDS, $postFields);
  113. curl_setopt($curlSession, CURLOPT_RETURNTRANSFER, 1);
  114. curl_setopt($curlSession, CURLOPT_TIMEOUT, 180);
  115. curl_setopt($curlSession, CURLOPT_FOLLOWLOCATION, 1);
  116. return $curl_response = curl_exec($curlSession);
  117. }
  118. header('Location: ' . httpPost($interface, $postFields),True);
  119. exit();
  120. ?>
Add Comment
Please, Sign In to add comment