Home > DotNetNuke > How to put PayPal Buy Now buttons in your DotNetNuke Portal

How to put PayPal Buy Now buttons in your DotNetNuke Portal

You can do this with a simple javascript trick.

Step 1. Remove the <Form> </Form> tags from your PayPal “Buy Now” code.

Step 2. Add
onClick=”this.form.action=’https://www.paypal.com/cgi-bin/webscr&#8217;;
this.form.submit();”

to the buy now input button.

Step 3. Paste what is left into the html module

What it does is change the action for the Form that is already embedded into the DotNetNuke default.aspx page.

Here is an an example:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

<input type=”hidden” name=”cmd” value=”_xclick”>
<input type=”hidden” name=”business” value=”billing@c2itconsulting.net.com”>
<input type=”hidden” name=”item_name” value=”Send us some money”>
<input type=”hidden” name=”item_number” value=”Gift”>
<input type=”hidden” name=”amount” value=”100.00″>
<input type=”hidden” name=”no_shipping” value=”2″>
<input type=”hidden” name=”no_note” value=”1″>
<input type=”hidden” name=”currency_code” value=”USD”>
<input type=”hidden” name=”lc” value=”US”>
<input type=”hidden” name=”bn” value=”PP-BuyNowBF”>
<input type=”image”
onClick=”this.form.action=’https://www.paypal.com/cgi-bin/webscr&#8217;;this.form.submit();”
src=”https://www.paypal.com/en_US/i/btn/x-click-but23.gif&#8221; border=”0″ name=”submit” alt=”Make payments with PayPal – it’s fast, free and secure!”>
<img alt=”” border=”0″ src=”https://www.paypal.com/en_US/i/scr/pixel.gif&#8221; width=”1″ height=”1″>

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

About these ads
Categories: DotNetNuke Tags: , ,
  1. Mark
    August 29, 2012 at 3:52 pm

    Great work around. Thank you for posting.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 88 other followers

%d bloggers like this: