Link to home
Start Free TrialLog in
Avatar of johnhardy
johnhardyFlag for United Kingdom of Great Britain and Northern Ireland

asked on

PayPal grandtotal field

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="info@xxxx.co.uk">
<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="http://www.xxx.co.uk">
<input type="hidden" name="cancel_return" value="http://www.xxx.co.uk">
<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.
Thanks
John
ASKER CERTIFIED SOLUTION
Avatar of WMIF
WMIF

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of johnhardy

ASKER

Thanks for the pointers, I will come back a bit later
regards
John
Thanks an invaluable reference.
If I need more help I will post another question.
John
Avatar of WMIF
WMIF

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