tel: (902) 800-2321

We blog a little about stuff...

Adding PayPal "Buy Now" buttons to DotNetNuke

By Gifford on 4/23/2016

Yup... it's true... the HTML PayPal generates does not work with DotNetNuke. 

Here is a sample of what PayPal creates:

<form target="PayPal" action="" method="post">

<input type="hidden" name="cmd" value="_s-xclick">

<input type="hidden" name="hosted_button_id" value="XXXXXXXXXXX">


<tr><td><input type="hidden" name="on0" value="Choose Option">Choose Option</td></tr><tr><td><select name="os0">

            <option value="Option 1">Option 1 </option>

            <option value="Option 2">Options 2 </option>

            <option value="Option 3">Option 3 </option>

</select> </td></tr>


<input type="image" src="" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">

<img alt="" border="0" src="" width="1" height="1">


But this is what you'll need to change it to:

<input type="hidden" name="cmd" value="_s-xclick" />
<input type="hidden" name="hosted_button_id" value="
            <td><input type="hidden" name="on0" value="Choose Option" />Choose Option</td>
            <td><select name="os0">
            <option value="
Option 1">Option 1 </option>
            <option value="
Option 2">Options 2 </option>
            <option value="
Option 3">Option 3 </option>
           </select> </td>
<input type="hidden" name="currency_code" value="USD" />
<p><input border="0" type="image" onclick="this.form.action='';this.form.submit();" src="" name="submit" alt="PayPal - The safer, easier way to pay online!" /> <img alt="" height="1" width="1" src="" style="border-width: 0px; border-style: solid;" /></p>

Tah Dah!!

DotNetNuke Tips