Author Topic: html form post payment method  (Read 13923 times)

deanvanrooyen

  • Beginner
  • *
  • Posts: 2
html form post payment method
« on: November 16, 2005, 04:16:38 AM »
Hi,

I have looked through the other posts and cannot work out how to perform this. My credit card vendor has given me some html that I need to intergrate into phpshop :
Example HTML code
   <form method="POST" action="https://www.vendor.com/vvonline/ccform.asp">
      <input type="hidden" name="p1" value="merchant code">
      <input type="hidden" name="p2" value="Desciption of goods">
      <input type="hidden" name="p3" value="total amount of goods">
      <input type="hidden" name="p4" value="email address">
<input type="submit" value="Pay by Credit Card">
   </form>

I need the next buttom on the payment request page to post the data. Does this need a payment proccessor? This must be the most basic requirement for processing paymnet - e.g. simple hml code that is used to direct the user to an external website to handle the credit card proccessing, and then return the user back to the original website??? Has someone seen the resolution in another topic and can you point me in the right direction? thanks.


deanvanrooyen

  • Beginner
  • *
  • Posts: 2
Re: html form post payment method
« Reply #1 on: November 16, 2005, 04:49:38 AM »
would this work?

   function process_payment($order_number, $order_total, &$d) {

<form method="POST" action="https://www.vednor.com/vvonline/ccform.asp">
      <input type="hidden" name="p1" value="9000">
      <input type="hidden" name="p2" value="Goods">
      <input type="hidden" name="p3" value="<?php $order_total ?>"
      <input type="hidden" name="p4" value="a@a.com"

<input type="submit" value="Pay by Credit Card">
   </form>
        return true;
    }

mitrang

  • Beginner
  • *
  • Posts: 1
Re: html form post payment method
« Reply #2 on: April 14, 2011, 05:23:34 AM »
I need to add a delivery date option in my cart
Help needed
<form action="post.asp" method="post">
<select size="1" name="Dropdown Menu">
<option value="" selected>Select date and time</option>
<option value="7 May 9:00 - 12:00">7 May 9:00 - 12:00</option>
<option value="7 May 14:00 - 19:00">7 May 14:00 - 19:00</option>
<option value="8 May 9:00 - 12:00">8 May 9:00 - 12:00</option>
<option value="8 May 14:00 - 19:00">8 May 14:00 - 19:00</option>
<option value="14 May 9:00 - 12:00">14 May 9:00 - 12:00</option>
<option value="14 May 14:00 - 19:00">14 May 14:00 - 19:00</option>
<option value="15 May 9:00 - 12:00">15 May 9:00 - 12:00</option>
<option value="15 May 14:00 - 19:00">15 May 14:00 - 19:00</option>
<option value="21 May 9:00 - 12:00">21 May 9:00 - 12:00</option>
<option value="21 May 14:00 - 19:00">21 May 14:00 - 19:00</option>
<option value="22 May 9:00 - 12:00">22 May 9:00 - 12:00</option>
<option value="22 May 14:00 - 19:00">22 May 14:00 - 19:00</option>
<option value="28 May 9:00 - 12:00">28 May 9:00 - 12:00</option>
<option value="28 May 14:00 - 19:00">28 May 14:00 - 19:00</option>
<option value="29 May 9:00 - 12:00">29 May 9:00 - 12:00</option>
<option value="29 May 14:00 - 19:00">29 May 14:00 - 19:00</option>

</select>
<input type="submit" value="Submit">
</form>