PayPal Donation - Version 1.2.5

Version Description

  • 1/31/18
  • New - Ability to pass name as shortcode attribute.
Download this release

Release Info

Developer scottpaterson
Plugin Icon 128x128 PayPal Donation
Version 1.2.5
Comparing to
See all releases

Code changes from version 1.2.4 to 1.2.5

easy-paypal-donation.php CHANGED
@@ -8,7 +8,7 @@ Tags: donation, donate, donations, charity, paypal, paypal donation, ecommerce,
8
  Author: Scott Paterson
9
  Author URI: https://wpplugin.org
10
  License: GPL2
11
- Version: 1.2.4
12
  */
13
 
14
  /* Copyright 2014-2017 Scott Paterson
8
  Author: Scott Paterson
9
  Author URI: https://wpplugin.org
10
  License: GPL2
11
+ Version: 1.2.5
12
  */
13
 
14
  /* Copyright 2014-2017 Scott Paterson
includes/public_shortcode.php CHANGED
@@ -8,9 +8,10 @@ function wpedon_options($atts) {
8
 
9
  // get shortcode id
10
  $atts = shortcode_atts(array(
11
- 'id' => '',
12
- 'align' => '',
13
- 'widget' => ''
 
14
  ), $atts);
15
 
16
  $post_id = $atts['id'];
@@ -430,6 +431,12 @@ function wpedon_options($atts) {
430
  if (!empty($wpedon_button_scpricejname)) { $output .= "<option value='$wpedon_button_scpricej'>". $wpedon_button_scpricejname ."</option>"; }
431
  if (!empty($wpedon_button_scpriceprice)) { $output .= "</select><br /><br />"; }
432
  }
 
 
 
 
 
 
433
 
434
  $output .= "<form target='$target' action='https://www.$path.com/cgi-bin/webscr' method='post'>";
435
  $output .= "<input type='hidden' name='cmd' value='_donations' />";
8
 
9
  // get shortcode id
10
  $atts = shortcode_atts(array(
11
+ 'id' => '',
12
+ 'align' => '',
13
+ 'widget' => '',
14
+ 'name' => ''
15
  ), $atts);
16
 
17
  $post_id = $atts['id'];
431
  if (!empty($wpedon_button_scpricejname)) { $output .= "<option value='$wpedon_button_scpricej'>". $wpedon_button_scpricejname ."</option>"; }
432
  if (!empty($wpedon_button_scpriceprice)) { $output .= "</select><br /><br />"; }
433
  }
434
+
435
+
436
+ // override name field if passed as shortcode attribute
437
+ if (!empty($atts['name'])) {
438
+ $name = $atts['name'];
439
+ }
440
 
441
  $output .= "<form target='$target' action='https://www.$path.com/cgi-bin/webscr' method='post'>";
442
  $output .= "<input type='hidden' name='cmd' value='_donations' />";
readme.txt CHANGED
@@ -6,7 +6,7 @@ Author URI: https://wpplugin.org
6
  Requires at least: 3.0
7
  Tested up to: 4.9
8
  Requires PHP: 5.4
9
- Stable tag: 1.2.4
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -17,6 +17,10 @@ Add a PayPal Donation Button to your website and start collecting donations with
17
 
18
  This plugin will allow you to collect PayPal donations on your website.
19
 
 
 
 
 
20
  You can place a PayPal Donation button anywhere on your site where you want to collect money. Your customers can use their PayPal account or Credit Card to donation money to you.
21
 
22
  What makes this PayPal donation plugin powerful is its simplicity. Just install the plugin and in just a few minutes customers from around the world can start donating to you via PayPal.
@@ -90,6 +94,10 @@ Yes, there is no limit to the amount of PayPal donations buttons that you can pu
90
 
91
  == Changelog ==
92
 
 
 
 
 
93
  = 1.2.4 =
94
  * 1/24/18
95
  * Fix - PHP Error message caused by widget class name
6
  Requires at least: 3.0
7
  Tested up to: 4.9
8
  Requires PHP: 5.4
9
+ Stable tag: 1.2.5
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
17
 
18
  This plugin will allow you to collect PayPal donations on your website.
19
 
20
+ Watch this 1 minute video of how the plugin works:
21
+
22
+ [youtube https://www.youtube.com/watch?v=YYUsrfnjNN0]
23
+
24
  You can place a PayPal Donation button anywhere on your site where you want to collect money. Your customers can use their PayPal account or Credit Card to donation money to you.
25
 
26
  What makes this PayPal donation plugin powerful is its simplicity. Just install the plugin and in just a few minutes customers from around the world can start donating to you via PayPal.
94
 
95
  == Changelog ==
96
 
97
+ = 1.2.5 =
98
+ * 1/31/18
99
+ * New - Ability to pass name as shortcode attribute.
100
+
101
  = 1.2.4 =
102
  * 1/24/18
103
  * Fix - PHP Error message caused by widget class name