Jump to content

2checkout version 2


Guest

Recommended Posts

I tried to post in other forums but it was not possible. For those how want to use 2checkout new version I found a little simple way:

in secure.php around line 207:

find:

//  echo"<form target=\"_self\" action=\"https://www.2checkout.com/cgi-bin/sbuyers/cartpurchase.2c\" name=\"SecureForm\" method=\"post\">

// 	 <input type=\"hidden\" name=\"sid\" value=\"$cust1\">

// 	 <input type=\"hidden\" name=\"cart_order_id\" value=\"$cart_order_id\">

// 	 <input type=\"hidden\" name=\"total\" value=\"$payable\">

// 	 <input type=\"hidden\" name=\"card_holder_name\" value=\"$name\">

// 	 <input type=\"hidden\" name=\"street_address\" value=\"$add_1 $add_2\">

// 	 <input type=\"hidden\" name=\"city\" value=\"$town\">

// 	 <input type=\"hidden\" name=\"state\" value=\"$county\">

// 	 <input type=\"hidden\" name=\"session\" value=\"$session\">

// 	 <input type=\"hidden\" name=\"country\" value=\"$country\">

// 	 <input type=\"hidden\" name=\"zip\" value=\"$postcode\">

// 	 <input type=\"hidden\" name=\"phone\" value=\"$phone\">

// 	 <input type=\"hidden\" name=\"email\" value=\"$email\">

// 	 <input type=\"hidden\" name=\"demo\" value=\"$test\">

//  </form>";


and replace it with:


$insertGoTo="https://www2.2checkout.com/2co/buyer/purchase?sid=$cust1&total=$payable&cart_order_id=$cart_order_id";  

print "<script language=\"JavaScript\">";

print "window.location = '$insertGoTo' ";

print "</script>";

Hope this helps.

Link to comment
Share on other sites

  • 2 months later...

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.   Paste as plain text instead

  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...