Plugin Directory

Changeset 3803817


Ignore:
Timestamp:
11/15/2026 08:20:29 PM (less than one hour ago)
Author:
codepeople
Message:

Uploaded version 1.3.73, details in changelog.

Location:
cp-contact-form-with-paypal
Files:
210 added
3 edited

Legend:

Unmodified
Added
Removed
  • cp-contact-form-with-paypal/trunk/README.txt

    r3800276 r3803817  
    55Requires at least: 3.0.5
    66Tested up to: 7.1
    7 Stable tag: 1.3.72
     7Stable tag: 1.3.73
    88License: GPLv2
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    10461046= 1.3.70 =
    10471047* Fix: Strengthened PayPal payment validation and order token binding. Thanks to kta1kri for responsible disclosure.
     1048* Important Upgrade Note: Because PayPal IPNs always send the PRIMARY account email as "receiver_email", forms using a secondary PayPal email address will reject IPNs until updated to your primary PayPal email
    10481049
    10491050= 1.3.71 =
    … …  
    10531054* IPN Logs feature to diagnose and correct notification errors
    10541055
     1056= 1.3.73 =
     1057* Note right next to the "PayPal Email" setting (along with a dismissible admin notice) about primary PayPal email address
     1058
    10551059== Upgrade Notice ==
    10561060
    1057 = 1.3.72 =
    1058 * IPN Logs feature to diagnose and correct notification errors
    1059 
     1061= 1.3.73 =
     1062* Note right next to the "PayPal Email" setting (along with a dismissible admin notice) about primary PayPal email address
     1063
  • cp-contact-form-with-paypal/trunk/cp_contactformpp.php

    r3800276 r3803817  
    44Plugin URI: https://cfpaypal.dwbooster.com
    55Description: Inserts a contact form into your website and lets you connect it to a Paypal payment.
    6 Version: 1.3.72
     6Version: 1.3.73
    77Author: CodePeople, paypaldev
    88Author URI: https://cfpaypal.dwbooster.com
  • cp-contact-form-with-paypal/trunk/cp_contactformpp_admin_int.php

    r3799010 r3803817  
    3232$all_forms = $wpdb->get_results( 'SELECT id, form_name FROM ' . $wpdb->prefix . CP_CONTACTFORMPP_FORMS_TABLE . ' ORDER BY id ASC' );
    3333$current_form_name = cp_contactformpp_get_option( 'form_name', 'Form' );
     34
     35$dismiss_pp_notice_nonce = wp_create_nonce( 'cpcfpp_dismiss_pp_notice' );
     36if ( isset( $_GET['cpcfpp_dismiss_pp_notice'] ) && isset($_GET['_wpnonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ), 'cpcfpp_dismiss_pp_notice' ) ) { update_user_meta( get_current_user_id(), 'cpcfpp_dismiss_primary_paypal_notice', 1 ); }$show_pp_primary_notice = ! get_user_meta( get_current_user_id(), 'cpcfpp_dismiss_primary_paypal_notice', true );
     37$dismiss_pp_notice_url  = add_query_arg(
     38    array(
     39        'cpcfpp_dismiss_pp_notice' => 1,
     40        '_wpnonce'                 => $dismiss_pp_notice_nonce,
     41    )
     42);
     43
    3444?>
    3545
    3646<div class="wrap cpcfpp-admin-wrap">
    37 
     47   
     48    <?php if ( $show_pp_primary_notice ) : ?>
     49        <div id="cpcfpp-primary-email-notice" class="notice notice-warning is-dismissible" style="margin: 0 0 20px 0; border-left-color: #dba617;" data-dismiss-url="<?php echo esc_url( $dismiss_pp_notice_url ); ?>">
     50            <p>
     51                <strong><?php _e( 'Important PayPal IPN Security Requirement:', 'cp-contact-form-with-paypal' ); ?></strong>
     52                <?php _e( 'If your PayPal account has multiple email addresses configured, PayPal always sends the PRIMARY email address of your account as the "receiver_email" in IPN notifications. You must specify your PRIMARY PayPal email address in the "PayPal email" setting (do not use a secondary email alias), otherwise PayPal IPN verification will fail and payments will remain marked as unpaid.', 'cp-contact-form-with-paypal' ); ?>
     53                </span>
     54                <a href="<?php echo esc_url( $dismiss_pp_notice_url ); ?>"><?php _e( 'Dismiss this notice', 'cp-contact-form-with-paypal' ); ?></a>
     55            </p>
     56        </div>
     57    <?php endif; ?>
     58   
    3859    <?php if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST['cp_contactformpp_post_options'] ) ) : ?>
    3960        <div id="setting-error-settings_updated" class="notice notice-success is-dismissible" role="status" aria-live="polite" style="margin: 0 0 20px 0;">
    … …  
    261282                            </th>
    262283                            <td>
    263                                 <input required type="email" id="paypal_email" name="paypal_email" class="cpcfpp-input" value="<?php echo esc_attr( cp_contactformpp_get_option( 'paypal_email', CP_CONTACTFORMPP_DEFAULT_PAYPAL_EMAIL ) ); ?>" />
    264                                 <span class="cpcfpp-help-text"><?php _e( 'Important! Enter the email address linked to your PayPal merchant account.', 'cp-contact-form-with-paypal' ); ?></span>
     284                                <div style="display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;">
     285                                    <input required type="email" id="paypal_email" name="paypal_email" class="cpcfpp-input" value="<?php echo esc_attr( cp_contactformpp_get_option( 'paypal_email', CP_CONTACTFORMPP_DEFAULT_PAYPAL_EMAIL ) ); ?>" />
     286                                    <div style="background: #fcf9e8; border: 1px solid #f0c33c; border-left: 4px solid #dba617; border-radius: 4px; padding: 8px 12px; max-width: 540px; font-size: 12.5px; line-height: 1.45; color: #1d2327;">
     287                                        <strong style="color: #996800;"><span class="dashicons dashicons-warning" style="font-size: 16px; width: 16px; height: 16px; vertical-align: text-bottom; margin-right: 2px;" aria-hidden="true"></span><?php _e( 'Must be your PRIMARY PayPal email:', 'cp-contact-form-with-paypal' ); ?></strong>
     288                                        <?php _e( 'PayPal always sends your account\'s primary email address as the "receiver_email" in IPN notifications. Using a secondary email address here will cause IPN verification to reject notifications and leave submissions unpaid.', 'cp-contact-form-with-paypal' ); ?>
     289                                    </div>
     290                                </div>
     291                                <span class="cpcfpp-help-text"><?php _e( 'Important! Enter the PRIMARY email address linked to your PayPal merchant account (secondary PayPal emails are not supported for IPN verification).', 'cp-contact-form-with-paypal' ); ?></span>
    265292                            </td>
    266293                        </tr>
Note: See TracChangeset for help on using the changeset viewer.