Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7789057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:10:42+00:00 2026-06-01T21:10:42+00:00

I have my own basket which is built up based on what the user

  • 0

I have my own basket which is built up based on what the user buys obviously. This then gets passed over to paypal checkout once the user clicks on checkout. It all works successfully with the item information being displayed in the PayPal cart receipt on the left hand side.

However, I am having an issue with my vat charge cost. I have calculated vat charge (20%) for my basket which works (within my site), but I am not sure how to pass that cost over to Paypal. Currently, Paypal are just calculating the total by adding the items prices depending on their quantities. Any ideas for getting the vat charge to be included in Paypal?

Here is my code:

$product1 = mysql_fetch_assoc($sql1);?>
<input type='hidden' name='item_number_<?php echo $count; ?>' value="<?php echo $count; ?>">
<input type="hidden" name="item_name_<?php echo $count; ?>" value="<?php echo $product1['prod_name']; ?>">
<input type="hidden" name="amount_<?php echo $count; ?>" value="<?php echo $product1['price']; ?>">
<input type='hidden' name='quantity_<?php echo $count; ?>' value="<?php echo $item['quantity']?>">
<?php $count++; } ?>

And here is my shipping code for my basket:

$grand_total = isset($grand_total) ? $grand_total : 0;
  $line_cost = $product['price'] * $item['quantity'];
  $grand_total += $line_cost;
  $charge = $grand_total /100 * 20;
  $chargeincvat = $charge + $grand_total;

<tr><td colspan='6' align='right'>Charges (VAT 20%): &pound; <?=number_format($chargeincvat, 2);?></td></tr>

ADDED:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">

<input type="hidden" name="cmd" value="_cart">

<input type="hidden" name="upload" value="1">

<input type="hidden" name="business"

value="derrysnurseries@hotmail.co.uk">



<input type='hidden' name='item_number_1' value="1">

<input type="hidden" name="item_name_1" value="Moment in Time">

<input type="hidden" name="amount_1" value="6.95">

<input type='hidden' name='quantity_1' value="1">

<input type='hidden' name='tax_cart' value="8.34">
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T21:10:43+00:00Added an answer on June 1, 2026 at 9:10 pm

    You can use the following as the name attribute of form elements :

    shipping - applies to first item added to cart
    shipping2 - applies to each additional item added to cart
    handling_cart - applied once to cart regardless of quantity
    

    for example

    <input type="hidden" name="handling_cart" value="15.00">
    

    to apply a 15.00 total charge for shipping

    To add tax / VAT to an item use tax_# where # is the item number eg

    <input type="hidden" name="tax_2" value=".15">
    

    this will add .15p to item number 2. To add a cart tax / VAT use

    <input type="hidden" name="tax_cart" value=".15">
    

    See page 263 of this doc and see page 294 of the same document to have the tax / VAT cost automatically calculated

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So the problem is the following : i do have own user control. which
I have my own control which derives from StackPanel. This control contains two other
I have my own inherited App.Controller from Mvc.Controller which then all of my controllers
I have my own generic class which goes like this: C1<T> { T value;
I have my own User Class, which inherits FOS\UserBundle\Entity\User . Additionally I wrote my
I have own component which works in my testing winform app good but when
I'm trying to hide window after its startup. I have own window-class which is
I have my own asp.net cookie created like this: var authTicket = new FormsAuthenticationTicket(
I have strange problem. I have own remote repository and upload their plugin. Then
I have my own object with onShow() function, which is called (by me) when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.