Changeset 3323605
- Timestamp:
- 07/07/2025 12:58:47 PM (8 months ago)
- Location:
- contact-form-7-paypal-extension
- Files:
-
- 8 edited
- 1 copied
-
tags/4.0.4 (copied) (copied from contact-form-7-paypal-extension/trunk)
-
tags/4.0.4/accept-paypal-payments-using-contact-form-7.php (modified) (2 diffs)
-
tags/4.0.4/inc/class.cf7pe.php (modified) (1 diff)
-
tags/4.0.4/inc/lib/class.cf7pe.lib.php (modified) (3 diffs)
-
tags/4.0.4/readme.txt (modified) (3 diffs)
-
trunk/accept-paypal-payments-using-contact-form-7.php (modified) (2 diffs)
-
trunk/inc/class.cf7pe.php (modified) (1 diff)
-
trunk/inc/lib/class.cf7pe.lib.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
contact-form-7-paypal-extension/tags/4.0.4/accept-paypal-payments-using-contact-form-7.php
r3323399 r3323605 4 4 * Plugin URL: https://wordpress.org/plugins/accept-paypal-payments-using-contact-form-7/ 5 5 * Description: This plugin will integrate PayPal submit button which redirects you to PayPal website for making your payments after submitting the form. <strong>PRO Version is available now.</strong> 6 * Version: 4.0. 36 * Version: 4.0.4 7 7 * Author: ZealousWeb 8 8 * Author URI: https://www.zealousweb.com … … 24 24 * 25 25 * @package Accept PayPal Payments using Contact Form 7 26 * @since 4.0. 326 * @since 4.0.4 27 27 */ 28 28 29 29 if ( !defined( 'CF7PE_VERSION' ) ) { 30 define( 'CF7PE_VERSION', '4.0. 3' ); // Version of plugin30 define( 'CF7PE_VERSION', '4.0.4' ); // Version of plugin 31 31 } 32 32 -
contact-form-7-paypal-extension/tags/4.0.4/inc/class.cf7pe.php
r3323399 r3323605 276 276 </div> 277 277 </div> 278 <input type="hidden" name="cf7pe_on_site_payment" value="cf7pe_on_site_payment"> 278 279 <input type="hidden" name="cf7pe_amount" att-cf7pe-name="<?php echo $amount;?>"> 279 280 <?php } else{ -
contact-form-7-paypal-extension/tags/4.0.4/inc/lib/class.cf7pe.lib.php
r3323399 r3323605 105 105 106 106 $payment_reference = isset( $_POST['payment_reference'] ) ? sanitize_text_field( $_POST['payment_reference'] ) : ''; 107 $cf7pe_on_site_payment = isset( $_POST['cf7pe_on_site_payment'] ) ? sanitize_text_field( $_POST['cf7pe_on_site_payment'] ) : ''; 108 107 109 $id = isset( $_POST['_wpcf7'] ) ? (int) $_POST['_wpcf7'] : 0; 108 110 … … 120 122 121 123 // Validate the payment_reference field only 122 if ( empty( $payment_reference ) ) {124 if ( empty( $payment_reference ) && $cf7pe_on_site_payment === 'cf7pe_on_site_payment') { 123 125 $result->invalidate( $tag, 'Payment reference is missing.' ); 124 126 } … … 652 654 } 653 655 656 $use_paypal = get_post_meta( $form_ID, CF7PE_META_PREFIX . 'use_paypal', true ); 657 658 if ( empty( $use_paypal ) ) 659 return; 660 654 661 if ( !empty( $form_ID ) ) { 655 656 $use_paypal = get_post_meta( $form_ID, CF7PE_META_PREFIX . 'use_paypal', true );657 658 if ( empty( $use_paypal ) )659 return;660 662 661 663 // Check if on-site payment is enabled for this form 662 664 $enable_on_site_payment = get_post_meta( $form_ID, CF7PE_META_PREFIX . 'enable_on_site_payment', true ); 663 664 if ( $enable_on_site_payment ) { 665 666 $cf7pe_on_site_payment = isset( $posted_data['cf7pe_on_site_payment'] ) ? sanitize_text_field( $posted_data['cf7pe_on_site_payment'] ) : ''; 667 668 if ( $enable_on_site_payment && $cf7pe_on_site_payment === 'cf7pe_on_site_payment') { 665 669 // Get and validate payment reference 666 670 $payment_reference = isset( $posted_data['payment_reference'] ) ? sanitize_text_field( $posted_data['payment_reference'] ) : ''; -
contact-form-7-paypal-extension/tags/4.0.4/readme.txt
r3323399 r3323605 7 7 Tested up to: 6.8 8 8 Requires PHP: 5.6 9 Stable tag: 4.0. 39 Stable tag: 4.0.4 10 10 License: GPLv3 or later License 11 11 CF7 requires at least: 3.0 12 12 CF7 tested up to: 5.8 13 Version: 4.0. 313 Version: 4.0.4 14 14 License URI: http://www.gnu.org/licenses/gpl-3.0.html 15 15 … … 107 107 108 108 109 110 109 == Frequently Asked Questions == 111 110 … … 119 118 120 119 == Changelog == 120 121 = 4.0.4 = 122 * Enhanced On-Site Payment Option : Improved code for a more secure and seamless payment experience—users can now complete transactions without being redirected off-site. 121 123 122 124 = 4.0.3 = -
contact-form-7-paypal-extension/trunk/accept-paypal-payments-using-contact-form-7.php
r3323399 r3323605 4 4 * Plugin URL: https://wordpress.org/plugins/accept-paypal-payments-using-contact-form-7/ 5 5 * Description: This plugin will integrate PayPal submit button which redirects you to PayPal website for making your payments after submitting the form. <strong>PRO Version is available now.</strong> 6 * Version: 4.0. 36 * Version: 4.0.4 7 7 * Author: ZealousWeb 8 8 * Author URI: https://www.zealousweb.com … … 24 24 * 25 25 * @package Accept PayPal Payments using Contact Form 7 26 * @since 4.0. 326 * @since 4.0.4 27 27 */ 28 28 29 29 if ( !defined( 'CF7PE_VERSION' ) ) { 30 define( 'CF7PE_VERSION', '4.0. 3' ); // Version of plugin30 define( 'CF7PE_VERSION', '4.0.4' ); // Version of plugin 31 31 } 32 32 -
contact-form-7-paypal-extension/trunk/inc/class.cf7pe.php
r3323399 r3323605 276 276 </div> 277 277 </div> 278 <input type="hidden" name="cf7pe_on_site_payment" value="cf7pe_on_site_payment"> 278 279 <input type="hidden" name="cf7pe_amount" att-cf7pe-name="<?php echo $amount;?>"> 279 280 <?php } else{ -
contact-form-7-paypal-extension/trunk/inc/lib/class.cf7pe.lib.php
r3323399 r3323605 105 105 106 106 $payment_reference = isset( $_POST['payment_reference'] ) ? sanitize_text_field( $_POST['payment_reference'] ) : ''; 107 $cf7pe_on_site_payment = isset( $_POST['cf7pe_on_site_payment'] ) ? sanitize_text_field( $_POST['cf7pe_on_site_payment'] ) : ''; 108 107 109 $id = isset( $_POST['_wpcf7'] ) ? (int) $_POST['_wpcf7'] : 0; 108 110 … … 120 122 121 123 // Validate the payment_reference field only 122 if ( empty( $payment_reference ) ) {124 if ( empty( $payment_reference ) && $cf7pe_on_site_payment === 'cf7pe_on_site_payment') { 123 125 $result->invalidate( $tag, 'Payment reference is missing.' ); 124 126 } … … 652 654 } 653 655 656 $use_paypal = get_post_meta( $form_ID, CF7PE_META_PREFIX . 'use_paypal', true ); 657 658 if ( empty( $use_paypal ) ) 659 return; 660 654 661 if ( !empty( $form_ID ) ) { 655 656 $use_paypal = get_post_meta( $form_ID, CF7PE_META_PREFIX . 'use_paypal', true );657 658 if ( empty( $use_paypal ) )659 return;660 662 661 663 // Check if on-site payment is enabled for this form 662 664 $enable_on_site_payment = get_post_meta( $form_ID, CF7PE_META_PREFIX . 'enable_on_site_payment', true ); 663 664 if ( $enable_on_site_payment ) { 665 666 $cf7pe_on_site_payment = isset( $posted_data['cf7pe_on_site_payment'] ) ? sanitize_text_field( $posted_data['cf7pe_on_site_payment'] ) : ''; 667 668 if ( $enable_on_site_payment && $cf7pe_on_site_payment === 'cf7pe_on_site_payment') { 665 669 // Get and validate payment reference 666 670 $payment_reference = isset( $posted_data['payment_reference'] ) ? sanitize_text_field( $posted_data['payment_reference'] ) : ''; -
contact-form-7-paypal-extension/trunk/readme.txt
r3323399 r3323605 7 7 Tested up to: 6.8 8 8 Requires PHP: 5.6 9 Stable tag: 4.0. 39 Stable tag: 4.0.4 10 10 License: GPLv3 or later License 11 11 CF7 requires at least: 3.0 12 12 CF7 tested up to: 5.8 13 Version: 4.0. 313 Version: 4.0.4 14 14 License URI: http://www.gnu.org/licenses/gpl-3.0.html 15 15 … … 107 107 108 108 109 110 109 == Frequently Asked Questions == 111 110 … … 119 118 120 119 == Changelog == 120 121 = 4.0.4 = 122 * Enhanced On-Site Payment Option : Improved code for a more secure and seamless payment experience—users can now complete transactions without being redirected off-site. 121 123 122 124 = 4.0.3 =
Note: See TracChangeset
for help on using the changeset viewer.