Jump to content

submitting to paypal or other


graham23s

Recommended Posts

Hi Guys,

 

on the site i am creating i have built nion it all, i am at the check out point, i ahve a form the user fills in with there credit card details, the next page i assume is the submission to the payment website i.e authorise.net for example, my question is how do i call the class? would i set the form action to:

 

<form action="paypal.ipn.php" method="post">

 

with the relevany hidden fields?

 

heres a test page:

 

payment.php

 

<?php
session_start();

include("inc/dbconnection.php");
include("inc/online.php");
include("inc/header.php");
include("inc/navigation.php");
?>
<?php
// standard header //
print("<div class=\"subheader\"><div id=\"title\">Home > <span class=\"blue\">Payment Methods</span></div>Select your payment method.</div>");

// vars // 
//$start_date = date('Y');
//  $end_date = date('Y') + 10;

// -- PAYMENT -- //
print("<table width=\"80%\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\" style=\"border:#d9dce2 1px solid;\">\n");
print("<tr>");
print("<td colspan=\"4\" bgcolor=\"#ecedf0\" align=\"left\"><b>Payment Methods [Credit or Debit Card]</b></td>");
print("</tr>");
print("<tr>");
print("<td colspan=\"2\" align=\"left\">Card Type</td><td align=\"left\"><select name=\"cc_type\"><option value=\"amex\">American Express</option><option value=\"visa\">Visa</option><option value=\"mastercard\">Mastercard</option><option value=\"switch\">Switch</option><option value=\"maestro\">Maestro</option></select></td>");
print("</tr>"); 
print("<tr>");
print("<td colspan=\"2\" align=\"left\">Card Number</td><td align=\"left\"><input type=\"text\" name=\"cc_number\" size=\"50\"></td>");
print("</tr>\n");
print("<tr>\n");
print("<td colspan=\"2\" align=\"left\">Card Expiration Date</td><td align=\"left\"><select name=”cc_exp_month”>
        <option value=””>Month</option>
        <option value=”1”>Jan</option>
        <option value=”2”>Feb</option>
        <option value=”3”>Mar</option>
        <option value=”4”>Apr</option>
        <option value=”5”>May</option>
        <option value=”6”>Jun</option>
        <option value=”7”>Jul</option>
        <option value=”8”>Aug</option>
        <option value=”9”>Sep</option>
        <option value=”10”>Oct</option>
        <option value=”11”>Nov</option>
        <option value=”12”>Dec</option>
        </select><select name=”cc_exp_year”>
        <option value=””>Year</option><option value=\"2008\">2008</option>");
print("<option value=\"2009\">2009</option></select>");      
print("</select>\n");
print("</td>");
print("</tr>");
print("<tr>");
print("<td colspan=\"4\" align=\"right\" style=\"border-top:#d9dce2 1px solid;\" align=\"right\" colspan=\"2\"><input type=\"submit\" name=\"submit\" value=\"Charge My Account\"></td>");
print("</tr>");
print("</table>");

print("<br />");

?>
<?php
// include the footer //
include("inc/footer.php");
?>

 

 

thanks for any help guys

 

Graham

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.