Add discount code to paypal button on wordpress
<p>I'm trying to add a discount to a paypal buy now button on my wordpress site. I have loaded javascript to calculate the discount, entered code into my header.php to instruct to load the javascript and put the button on my site. Everything seems ok until you are transferred to the paypal site where the price is still the original, no discount taken off.
This is the code I'm using for the button.</p>

<pre><code>&lt;form action="https://www.paypal.com/cgi-bin/webscr" method="post" onsubmit="this.target = 'paypal'; return ReadForm (this);"&gt;
    &lt;input type="hidden" name="cmd" value="_xclick" /&gt;
    &lt;input type="hidden" name="business" value="BL9L7384594ZL" /&gt;
    &lt;input type="hidden" name="lc" value="AU" /&gt;
    &lt;input type="hidden" name="item_name" value="One Day Photography Tour and Workshop" /&gt;
    &lt;input type="hidden" name="amount" value="179.00" /&gt;
    &lt;input type="hidden" name="currency_code" value="AUD" /&gt;
    &lt;input type="hidden" name="button_subtype" value="services" /&gt;
    &lt;input type="hidden" name="baseamt" value="179.00" /&gt;
    &lt;input type="hidden" name="basedes" value="One Day Photography Tour and Workshop" /&gt;
    &lt;input type="hidden" name="no_note" value="0" /&gt;
    &lt;input type="hidden" name="cn" value="Add special instructions to the seller" /&gt;
    &lt;input type="hidden" name="no_shipping" value="2" /&gt;
    &lt;input type="hidden" name="rm" value="1" /&gt;
    &lt;input type="hidden" name="return" value="http://goldcoastphototours.com/payment-thank-you/" /&gt;
    &lt;input type="hidden" name="bn" value="PP-BuyNowBF:btn_paynowCC_LG.gif:NonHosted" /&gt;
    &lt;table&gt;
        &lt;tr&gt;&lt;td&gt;&lt;input type="hidden" name="on0" value="ENTER CLUB NAME"&gt;ENTER CLUB NAME&lt;/td&gt;&lt;/tr&gt;
        &lt;tr&gt;&lt;td&gt;&lt;input type="text" name="os0" maxlength="200"&gt;&lt;/td&gt;&lt;/tr&gt;
    Enter Coupon code
    &lt;input type="text" size="10"  name="coupcode" /&gt;
    &lt;input type="button" value="Check code" onclick="coupval =this.form.coupcode.value;ChkCoup();" /&gt;&lt;br /&gt;&lt;br /&gt;
    &lt;/table&gt;
    &lt;input type="image" src="https://www.paypalobjects.com/en_AU/i/btn/btn_paynowCC_LG.gif" border="0" name="submit" onclick="CalculateOrder(this.form)" alt="PayPal — The safer, easier way to pay online." /&gt;
    &lt;img alt="" border="0" src="https://www.paypalobjects.com/en_AU/i/scr/pixel.gif" width="1" height="1" /&gt;
&lt;/form&gt;
</code></pre>

<p>I'm quite new at coding so any help would be much appreiated.</p>
