PayPal grandtotal field

Posted on 2006-05-04
Last Modified: 2012-05-05
I have a shopping cart I wish to connect to PayPal.
I have a checkout page which is showing
Sub Total 100
Post and Packing 10
Grand Total 110
Thats all OK

Transfering the code to PayPal if have this code in the page.
Most fields get passed OK

<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="">
<input type="hidden" name="item_name" value="<%=objCart.GetCartValue("Name",i)%>">
<input type="hidden" name="amount" value="<%=objCart.GrandTotal%>">
<input type="hidden" name="shipping" value="<%=objCart.Shipping%>">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="return" value="">
<input type="hidden" name="cancel_return" value="">
<input type="hidden" name="item_number" value="<%=objCart.GetCartValue("StkNo",i)%>">
<input type="hidden" name="first_name" value="<%=(CustomerRS.Fields.Item("FirstName").Value)%>">
<input type="hidden" name="last_name" value="<%=(CustomerRS.Fields.Item("LastName").Value)%>">

When I come to the paypal screen the GrandTotal does not include the objCart.Shipping
I need to include the shipping.

Can you see what I need to do to correct this.
Question by:johnhardy
    LVL 22

    Accepted Solution

    hopefully these links work.  some links from the paypal help section.

    Seller Tools - Website Payments - Can I collect shipping costs with PayPal?

    Seller Tools - Website Payments - How will my total Shipping amount be calculated?

    Seller Tools - Website Payments - I used to collect Shipping by hard coding the shipping variables in my PayPal Website Payments Standard button code. Can I still do that?

    by those three links that i found, it appears that if you have the override set you cannot pass an amount to charge for shipping, but that you need to have paypal calculate it for you.  maybe you have your shipping override set in your account?

    Author Comment

    Thanks for the pointers, I will come back a bit later

    Author Comment

    Thanks an invaluable reference.
    If I need more help I will post another question.
    LVL 22

    Expert Comment

    glad those links helped.  thats all i could find on shipping charges.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
    Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
    Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now