- Posted by miketeye on September 17, 2011
Share on FacebookWhereas wordpress has plugins for stuff like paypal donate and buy now buttons in abundance,
Blogengine is far behind the competition for stuff like that. I know people might have developed such extensions, but are probably not yet willing to share them with fellow blogengine users. I thought I will change that so I am releasing my paypal buttons for blogengine extension for you all to use.



Technically, the extensions are simple and just wrap the paypal html for the buttons in .Net code and provide an easy setup via the extensions manager in blogengine.
EXAMPLE:
The donate button on this site is an example usage of the donate button extension.
USAGE SYNTAX: [--buynow:Gold Watch;ID00125;12.50] without the --, results in the button below:

DOWNLOAD:
You may download the extensions below. To install the extensions, simply copy the downloaded file into your /App_Code/Extensions folder of your blogengine site root folder.
PaypalAddToBasketButtons.cs (6.72 kb)
PaypalBuyNowButtons.cs (6.13 kb)
PaypalDonateButton.cs (5.49 kb)
NEW:
Nuget packages for the Paypal Buttons:
BlogEnginePaypalDonateButton.1.0.nupkg (4.89 kb)
BlogEnginePaypalAddToBasketButton.1.0.nupkg (5.49 kb)
BlogEnginePaypalBuyNowButton.1.0.nupkg (5.24 kb)
Aso available from the blogEngine gallery @ http://dnbegallery.org/cms/List/ByCategory/Extensions/Miscellaneous
If you need help on how to use the nuget packages in blogengine, check http://dnbegallery.org/cms
If you want to drop the extension onto a production server then extract the .cs file from the nuget package and drop it in /App_Code/Extensions folder of your blogEngine root folder.
You can then make the necessary settings in Extensions Manager:

If you get an error about the seller only accepts encrypted payments, then do the following:
1. Log in to your PayPal Account.
2. Click "Profile" tab or "Edit Profile" link.
3. Under "Selling Preferences", select "Website Preferences".
4. In the section titled "Encrypted Website Payments" select "Off".
5. Click "Save".

Please post comments if you have any bugs or modifications or enhancements.
Cheers!
NB: As usual the software is provided free of charge and use at your own risk. If you have any questions, I will do my best to provide the answers in my free time, if I ever really have any!