Payment Form for PayPal Pro - Version 1.1.32

Version Description

  • Adjustments to make the form GDPR compliant

=

Download this release

Release Info

Developer codepeople
Plugin Icon 128x128 Payment Form for PayPal Pro
Version 1.1.32
Comparing to
See all releases

Code changes from version 1.1.31 to 1.1.32

Files changed (2) hide show
  1. README.txt +9 -2
  2. cp_ppp.php +4 -2
README.txt CHANGED
@@ -149,6 +149,10 @@ A: Try first using a "from" email address that belongs to your website domain, t
149
 
150
  If that doesn't work please check if your hosting service requires some specific configuration to send emails from PHP/WordPress websites. The plugin uses the settings specified into the WordPress website to deliver the emails, if your hosting has some specific requirements like a fixed "from" address or a custom "SMTP" server those settings must be configured into the WordPress website.
151
 
 
 
 
 
152
 
153
  == Screenshots ==
154
 
@@ -220,7 +224,10 @@ If that doesn't work please check if your hosting service requires some specific
220
  = 1.1.31 =
221
  * Added CSS and JavaScript customization panel
222
 
 
 
 
223
  == Upgrade Notice ==
224
 
225
- = 1.1.31 =
226
- * Added CSS and JavaScript customization panel
149
 
150
  If that doesn't work please check if your hosting service requires some specific configuration to send emails from PHP/WordPress websites. The plugin uses the settings specified into the WordPress website to deliver the emails, if your hosting has some specific requirements like a fixed "from" address or a custom "SMTP" server those settings must be configured into the WordPress website.
151
 
152
+ = Q: Are the forms GDPR compliant? =
153
+
154
+ A: In all plugin versions you can turn off IP tracking to avoid saving that user info. Full GDPR compliant forms can be built using the commercial versions of the plugin.
155
+
156
 
157
  == Screenshots ==
158
 
224
  = 1.1.31 =
225
  * Added CSS and JavaScript customization panel
226
 
227
+ = 1.1.32 =
228
+ * Adjustments to make the form GDPR compliant
229
+
230
  == Upgrade Notice ==
231
 
232
+ = 1.1.32 =
233
+ * Adjustments to make the form GDPR compliant
cp_ppp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Payment Form for PayPal Pro
4
  Plugin URI: https://wordpress.dwbooster.com/forms/paypal-payment-pro-form
5
  Description: Payment Form for PayPal Pro to accept credit cards directly into your website. Official PayPal Partner.
6
- Version: 1.1.31
7
  Author: CodePeople
8
  Author URI: https://wordpress.dwbooster.com/forms/payment-form-for-paypal-pro
9
  License: GPL
@@ -916,13 +916,15 @@ function cp_ppp_check_posted_data() {
916
 
917
  cp_ppp_add_field_verify(CP_PPP_POSTS_TABLE_NAME,'posted_data');
918
 
 
 
919
  // insert into database
920
  //---------------------------
921
  $wpdb->query("ALTER TABLE ".CP_PPP_POSTS_TABLE_NAME." CHANGE `ipaddr` `ipaddr` VARCHAR(250)");
922
  $to = cp_ppp_get_option('cu_user_email_field', CP_PPP_DEFAULT_cu_user_email_field).$sequence;
923
  $rows_affected = $wpdb->insert( CP_PPP_POSTS_TABLE_NAME, array( 'formid' => CP_PPP_ID,
924
  'time' => current_time('mysql'),
925
- 'ipaddr' => $_SERVER['REMOTE_ADDR'],
926
  'notifyto' => (@$_POST[$to]?$_POST[$to]:''),
927
  'paypal_post' => serialize($params),
928
  'posted_data' => serialize($params),
3
  Plugin Name: Payment Form for PayPal Pro
4
  Plugin URI: https://wordpress.dwbooster.com/forms/paypal-payment-pro-form
5
  Description: Payment Form for PayPal Pro to accept credit cards directly into your website. Official PayPal Partner.
6
+ Version: 1.1.32
7
  Author: CodePeople
8
  Author URI: https://wordpress.dwbooster.com/forms/payment-form-for-paypal-pro
9
  License: GPL
916
 
917
  cp_ppp_add_field_verify(CP_PPP_POSTS_TABLE_NAME,'posted_data');
918
 
919
+ $saveipaddr = ('true' == cp_ppp_get_option('fp_inc_additional_info', CP_PPP_DEFAULT_fp_inc_additional_info));
920
+
921
  // insert into database
922
  //---------------------------
923
  $wpdb->query("ALTER TABLE ".CP_PPP_POSTS_TABLE_NAME." CHANGE `ipaddr` `ipaddr` VARCHAR(250)");
924
  $to = cp_ppp_get_option('cu_user_email_field', CP_PPP_DEFAULT_cu_user_email_field).$sequence;
925
  $rows_affected = $wpdb->insert( CP_PPP_POSTS_TABLE_NAME, array( 'formid' => CP_PPP_ID,
926
  'time' => current_time('mysql'),
927
+ 'ipaddr' => ($saveipaddr?$_SERVER['REMOTE_ADDR']:'-'),
928
  'notifyto' => (@$_POST[$to]?$_POST[$to]:''),
929
  'paypal_post' => serialize($params),
930
  'posted_data' => serialize($params),