PayPal Donation - Version 1.3

Version Description

  • 11/9/20
  • Fix - Changed the variables for logging and deubgging to use WordPress globals. The plugin now uses: WP_DEBUG and WP_DEBUG_LOG
  • Updated - Pro version feature list.
Download this release

Release Info

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

Code changes from version 1.2.9 to 1.3

easy-paypal-donation.php CHANGED
@@ -1,17 +1,17 @@
1
  <?php
2
 
3
  /*
4
- Plugin Name: PayPal Donation
5
  Plugin URI: https://wpplugin.org/downloads/paypal-donation-pro/
6
  Description: A simple and easy way to accept PayPal donations on your website.
7
  Tags: donation, donate, donations, charity, paypal, paypal donation, ecommerce, gateway, payment, paypal button, paypal donation, paypal donate, paypal payment, paypal plugin
8
  Author: Scott Paterson
9
  Author URI: https://wpplugin.org
10
  License: GPL2
11
- Version: 1.2.9
12
  */
13
 
14
- /* Copyright 2014-2018 Scott Paterson
15
 
16
  This program is free software; you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License as published by
1
  <?php
2
 
3
  /*
4
+ Plugin Name: Accept Donations with PayPal
5
  Plugin URI: https://wpplugin.org/downloads/paypal-donation-pro/
6
  Description: A simple and easy way to accept PayPal donations on your website.
7
  Tags: donation, donate, donations, charity, paypal, paypal donation, ecommerce, gateway, payment, paypal button, paypal donation, paypal donate, paypal payment, paypal plugin
8
  Author: Scott Paterson
9
  Author URI: https://wpplugin.org
10
  License: GPL2
11
+ Version: 1.3
12
  */
13
 
14
+ /* Copyright 2014-2021 Scott Paterson
15
 
16
  This program is free software; you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License as published by
includes/private_settings.php CHANGED
@@ -306,8 +306,9 @@ WPPlugin is an offical PayPal Partner. Various trademarks held by their respecti
306
 
307
  <br />
308
  <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div>Offer recurring donations.<br />
309
- <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div>Setup donations that recur forever.<br />
310
- <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div>Recurring donations dropdown menu.<br />
 
311
  <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div>Offer up to 20 amount dropdown menu options instead of 10.<br />
312
 
313
  <br />
306
 
307
  <br />
308
  <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div>Offer recurring donations.<br />
309
+ <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div>Offer daily, weekly, monthly, and yearly billing.<br />
310
+ <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div>Set how long should billing should continue.<br />
311
+ <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div>Offers customers a recurring donations dropdown menu.<br />
312
  <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div>Offer up to 20 amount dropdown menu options instead of 10.<br />
313
 
314
  <br />
includes/public_ipn.php CHANGED
@@ -56,7 +56,7 @@ function wpplugin_wpedon_button_ipn() {
56
  curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
57
  curl_setopt($ch, CURLOPT_FORBID_REUSE, 1);
58
 
59
- if(DEBUG == true) {
60
  curl_setopt($ch, CURLOPT_HEADER, 1);
61
  curl_setopt($ch, CURLINFO_HEADER_OUT, 1);
62
  }
@@ -67,16 +67,16 @@ function wpplugin_wpedon_button_ipn() {
67
  $res = curl_exec($ch);
68
  if (curl_errno($ch) != 0)
69
  {
70
- if(DEBUG == true) {
71
- error_log(date('[Y-m-d H:i e] '). "Can't connect to PayPal to validate IPN message: " . curl_error($ch) . PHP_EOL, 3, LOG_FILE);
72
  }
73
  curl_close($ch);
74
  exit;
75
 
76
  } else {
77
- if(DEBUG == true) {
78
- error_log(date('[Y-m-d H:i e] '). "HTTP request of validation request:". curl_getinfo($ch, CURLINFO_HEADER_OUT) ." for IPN payload: $req" . PHP_EOL, 3, LOG_FILE);
79
- error_log(date('[Y-m-d H:i e] '). "HTTP response of validation request: $res" . PHP_EOL, 3, LOG_FILE);
80
  }
81
  curl_close($ch);
82
  }
@@ -132,13 +132,13 @@ function wpplugin_wpedon_button_ipn() {
132
 
133
  }
134
 
135
- if(DEBUG == true) {
136
- error_log(date('[Y-m-d H:i e] '). "Verified IPN: $req ". PHP_EOL, 3, LOG_FILE);
137
  }
138
  } else if (strcmp ($res, "INVALID") == 0) {
139
  // log for manual investigation
140
- if(DEBUG == true) {
141
- error_log(date('[Y-m-d H:i e] '). "Invalid IPN: $req" . PHP_EOL, 3, LOG_FILE);
142
  }
143
 
144
  }
56
  curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
57
  curl_setopt($ch, CURLOPT_FORBID_REUSE, 1);
58
 
59
+ if(WP_DEBUG === true) {
60
  curl_setopt($ch, CURLOPT_HEADER, 1);
61
  curl_setopt($ch, CURLINFO_HEADER_OUT, 1);
62
  }
67
  $res = curl_exec($ch);
68
  if (curl_errno($ch) != 0)
69
  {
70
+ if(WP_DEBUG === true) {
71
+ error_log(date('[Y-m-d H:i e] '). "Can't connect to PayPal to validate IPN message: " . curl_error($ch) . PHP_EOL, 3, WP_DEBUG_LOG);
72
  }
73
  curl_close($ch);
74
  exit;
75
 
76
  } else {
77
+ if(WP_DEBUG === true) {
78
+ error_log(date('[Y-m-d H:i e] '). "HTTP request of validation request:". curl_getinfo($ch, CURLINFO_HEADER_OUT) ." for IPN payload: $req" . PHP_EOL, 3, WP_DEBUG_LOG);
79
+ error_log(date('[Y-m-d H:i e] '). "HTTP response of validation request: $res" . PHP_EOL, 3, WP_DEBUG_LOG);
80
  }
81
  curl_close($ch);
82
  }
132
 
133
  }
134
 
135
+ if(WP_DEBUG === true) {
136
+ error_log(date('[Y-m-d H:i e] '). "Verified IPN: $req ". PHP_EOL, 3, WP_DEBUG_LOG);
137
  }
138
  } else if (strcmp ($res, "INVALID") == 0) {
139
  // log for manual investigation
140
+ if(WP_DEBUG === true) {
141
+ error_log(date('[Y-m-d H:i e] '). "Invalid IPN: $req" . PHP_EOL, 3, WP_DEBUG_LOG);
142
  }
143
 
144
  }
readme.txt CHANGED
@@ -1,12 +1,12 @@
1
- === PayPal Donation ===
2
  Contributors: scottpaterson,wp-plugin
3
  Donate link: https://wpplugin.org/donate/
4
  Tags: donation, donate, donations, charity, paypal, gateway, paypal donation, paypal donate
5
  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.9
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -52,7 +52,7 @@ WP Plugin is an offical PayPal Partner based in Boulder, Colorado. You can visit
52
  * Choose how the PayPal window opens
53
  * Setup a dropdown menu to force certain amounts
54
 
55
- > #### PayPal Donation Pro
56
  > We offer a Pro version of this PayPal plugin for business owners who need more features.<br />
57
  >
58
  > * Offer recurring donations.
@@ -62,7 +62,7 @@ WP Plugin is an offical PayPal Partner based in Boulder, Colorado. You can visit
62
  > * Offer up to 20 amount dropdown menu options instead of 10.
63
  >
64
  >
65
- > [You can learn more about PayPal Donation Pro here](https://wpplugin.org/downloads/paypal-donation-pro/)
66
 
67
  WP Plugin is an offical PayPal Partner. Various trademarks held by their respective owners.
68
 
@@ -94,6 +94,11 @@ Yes, there is no limit to the amount of PayPal donations buttons that you can pu
94
 
95
  == Changelog ==
96
 
 
 
 
 
 
97
  = 1.2.9 =
98
  * 6/12/18
99
  * Fix - Cannot modify header PHP warning in Divi page builder.
1
+ === Accept Donations with PayPal ===
2
  Contributors: scottpaterson,wp-plugin
3
  Donate link: https://wpplugin.org/donate/
4
  Tags: donation, donate, donations, charity, paypal, gateway, paypal donation, paypal donate
5
  Author URI: https://wpplugin.org
6
  Requires at least: 3.0
7
+ Tested up to: 5.8
8
  Requires PHP: 5.4
9
+ Stable tag: 1.3
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
52
  * Choose how the PayPal window opens
53
  * Setup a dropdown menu to force certain amounts
54
 
55
+ > #### Accept Donations with PayPal Pro
56
  > We offer a Pro version of this PayPal plugin for business owners who need more features.<br />
57
  >
58
  > * Offer recurring donations.
62
  > * Offer up to 20 amount dropdown menu options instead of 10.
63
  >
64
  >
65
+ > [You can learn more about Accept Donations with PayPal Pro here](https://wpplugin.org/downloads/paypal-donation-pro/)
66
 
67
  WP Plugin is an offical PayPal Partner. Various trademarks held by their respective owners.
68
 
94
 
95
  == Changelog ==
96
 
97
+ = 1.3 =
98
+ * 11/9/20
99
+ * Fix - Changed the variables for logging and deubgging to use WordPress globals. The plugin now uses: WP_DEBUG and WP_DEBUG_LOG
100
+ * Updated - Pro version feature list.
101
+
102
  = 1.2.9 =
103
  * 6/12/18
104
  * Fix - Cannot modify header PHP warning in Divi page builder.