Shopping Cart Forum

Go Back   eShop Forums - eCommerce Help Forum for Shopping Cart Owners. > Tech Corner > PHP/HTML/CSS/JavaScript and Servers
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
PHP/HTML/CSS/JavaScript and Servers Pick up tips and exchange info on the technical side of having a web presence.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-08-2009, 01:03 AM
blinkmadden blinkmadden is offline
Junior Member
 
Join Date: Aug 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Shipping for PayPal forms. -HELP-

Hi, My name is Luther, I am new to this forum and I'm not sure whether I posted in the right section.

Anyway, I wanted to ask if you guys could help me figure out how to include the shipping cost and adding it to the total price of the items purchased in the Paypal. Firstly, I used the Beginning PHP and MySQL E-commerce book to build my e-commerce website. I have completed till the Storing customer orders and decided to use Paypal as my primary payment method.

Here is my Paypal form code (include/config.php):
// PayPal configuration
define('PAYPAL_URL',
'https://www.paypal.com/xclick/business=sajeev_rai@hotmail.com');
define('PAYPAL_CURRENCY_CODE', 'USD');
define('PAYPAL_RETURN_URL', 'http://www.example.com');
define('PAYPAL_CANCEL_RETURN_URL', 'http://www.example.com');

Here are the screens:

http://www.freeimagehosting.net/imag...8c004417ff.jpg
http://www.freeimagehosting.net/imag...c1e747981b.jpg

I would appreciate your help. Please let me know if you want to see the rest of my codes. Thanks!

Last edited by blinkmadden; 07-08-2009 at 01:08 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-08-2009, 08:42 AM
Lawrence Lawrence is offline
Forum Admin
 
Join Date: Aug 2007
Location: Kenley, Surrey, UK
Posts: 1,347
Thanks: 3
Thanked 87 Times in 87 Posts
Default

Hi Luther

You'll need to pass the shipping information to PayPal via a form variable, I found this thread on the PayPal developer forum that explains how to do it.
http://www.pdncommunity.com/pdn/boar...essage.id=1321
__________________
Lawrence
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-08-2009, 12:56 AM
blinkmadden blinkmadden is offline
Junior Member
 
Join Date: Aug 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Appreciate it lawrence. I tried messing with the codes but still can't figure it out. The codes that they used are a little bit different than mine(xampp).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 20-09-2009, 08:09 AM
Topshopper Topshopper is offline
E-Commerce Provider
 
Join Date: Jun 2009
Location: UK
Posts: 84
Thanks: 2
Thanked 1 Time in 1 Post
Default

Here is some PHP code for Paypal I use. Does not include shipping but may help.

Code:
<form method="post" action="https://www.paypal.com/cgi-bin/webscr" name="PayCredit">
          <div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="submit" name="Submit" value="Pay through Secure Server at PayPal">
            <input type="hidden" name="cmd" value="<?php print $PPCmd ?>">
   <?php if ($PPCmd=="_ext-enter") { ?>
   <input type="hidden" name="redirect_cmd" value="_xclick">
   <?php } ?>
            <input type="hidden" name="business" value="<?php print $PPMerchantID?>">
            <input type="hidden" name="item_name" value="Purchase from <?php print $MerchantName?>">
            <input type="hidden" name="item_number" value="<?php print $FullInvoiceRef?>">
            <input type="hidden" name="amount" value="<?php print $InvoiceTotalf?>">
            <input type="hidden" name="currency_code" value="<?php print $PPCurrency?>">
</form>
__________________
Mike

TopShopper Shopping Carts
http://www.topshopper.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
e-commerce, paypal, php, shopping cart


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Drop shipping Just4Girlz Wholesalers & Dropshippers 12 29-06-2010 08:34 AM
zen cart feedback forms viaterra Zen Cart & osCommerce 14 07-05-2009 09:07 AM
Shipping (Where do you get boxes?) tomdelonge The Water Cooler 1 29-04-2009 11:11 AM
Shipping Calculator stacedr Zen Cart & osCommerce 3 25-04-2009 01:59 PM
Shipping Calculator Twinkle Zen Cart & osCommerce 1 11-06-2008 09:09 PM

Google
Home - Top

Edible Graphics, Affordable E-Commerce, Web Shops & Custom Form Scripts
Gadgets online
tech news, product reviews, the latest home and business technology, the latest in digital imaging


Content Relevant URLs by vBSEO 3.0.0