Forum


HomeHomePublicPublicAdministrationAdministrationHow to add a Paypal BuyNow Button to DotNetNuke - Video #139How to add a Paypal BuyNow Button to DotNetNuke - Video #139
Previous
 
Next
New Post
8/20/2012 4:11 PM
 

Aderson - I've tried using this video and I followed it exactly, and tried over and over and over again, but I cannot seem to get the Paypal site for the merchant account to display. It only goes to the Paypal home page, and no further... Can you see where the flaw is...try it again on DNN 6.2.0 using your own account or new separate account (I know it's a pain) - but it isn't passing through??

Since posting this on the blog- I’ve figured out the syntax error in the file that Paypal provides and I’m sharing what I did to correct.  It’s somewhat of a mess- but this worked for me!

I’ve removed the protected data from Paypal by inputting the info as “bold-italic”

This is what PayPal provides

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

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

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

            [table selection inserted here]  

<input type="hidden" name="currency_code" value="USD">   

<input type="image" src="https://www.paypalobjects.com/en_US/i..." border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">

<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i..." width="1" height="1">

</form>

This is how you need to show the above for DNN

Remove the <form target= and subsequent  </form> elements

Remove  the  <input type="hidden" name="currency_code" value="USD">  this isn’t needed unless you accept other currency other than USD!

Then the syntax for the remaining lines are:

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

<input type="hidden" value="putyourcodehere" name="hosted_button_id" />

            [insert your table here] (this could be a cart)

<input border="0" type="image" alt="PayPal - The safer, easier way to pay online!" name="submit" src=https://www.paypalobjects.com/en_US/i... onclick="this.form.action='https://www.paypal.com/cgi-bin/webscr'; this.form.submit();" />

<a href="https://www.paypal.com/cgi-bin/webscr?cmd_s-xclick=putyourcodehere">

<img alt="" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1" style="border-width: 0px; border-style: solid;" /></a>

Use this for the link to the button in the link in the html module:

https://www.paypal.com/cgi-bin/webscr?cmd_s-xclick=putyourcodehere

This is for a cart button – but will work for any of the buttons you wish to use.


Thank me later! 

Mike

PS site is running 6.2.0 currently


 
New Post
8/21/2012 3:46 AM
 

I'm thanking you right now Mike! I'm glad you got it sorted out on your own.

 Good strategy!

Cheers,

Aderson

 
Previous
 
Next
HomeHomePublicPublicAdministrationAdministrationHow to add a Paypal BuyNow Button to DotNetNuke - Video #139How to add a Paypal BuyNow Button to DotNetNuke - Video #139



Try FREE
30 days money back guaranteed