Changeset 3286247
- Timestamp:
- 05/02/2025 12:59:33 PM (10 months ago)
- Location:
- payment-forms-for-paystack/trunk
- Files:
-
- 4 edited
-
assets/js/paystack-public.js (modified) (2 diffs)
-
includes/classes/class-form-shortcode.php (modified) (1 diff)
-
paystack-forms.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
payment-forms-for-paystack/trunk/assets/js/paystack-public.js
r3210130 r3286247 166 166 ); 167 167 if ($("#pf-quantity").length) { 168 $( "#pf-quantity" ).on( 'change', function(event){ 169 checkMinimumVal(); 170 } ); 168 171 calculateTotal(); 169 172 }; … … 596 599 597 600 function checkMinimumVal() { 598 if ( $("#pf-minimum-hidden").length) {599 var min_amount = Number($("#pf- minimum-hidden").val());601 if ( $("#pf-amount").length ) { 602 var min_amount = Number($("#pf-amount").attr('min')); 600 603 var amt = Number($("#pf-amount").val()); 604 var quantity = 1; 605 606 if ( $("#pf-quantity").length ) { 607 quantity = $("#pf-quantity").val(); 608 } 609 610 amt = amt * quantity; 611 601 612 if (min_amount > 0 && amt < min_amount) { 602 613 $("#pf-min-val-warn").text( "Amount cannot be less than the minimum amount"); -
payment-forms-for-paystack/trunk/includes/classes/class-form-shortcode.php
r3210130 r3286247 391 391 } 392 392 393 $html[] = '<div style="color:red;"><small id="pf-min-val-warn"></small></div>'; 394 393 395 $html[] = '</div></div>'; 394 396 -
payment-forms-for-paystack/trunk/paystack-forms.php
r3279082 r3286247 4 4 Plugin URI: https://github.com/PaystackHQ/Wordpress-Payment-forms-for-Paystack 5 5 Description: Payment Forms for Paystack allows you create forms that will be used to bill clients for goods and services via Paystack. 6 Version: 4.0. 36 Version: 4.0.4 7 7 Author: Paystack 8 8 Author URI: http://paystack.com … … 17 17 define( 'PFF_PAYSTACK_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 18 18 define( 'PFF_PAYSTACK_MAIN_FILE', __FILE__ ); 19 define( 'PFF_PAYSTACK_VERSION', '4.0. 3' );19 define( 'PFF_PAYSTACK_VERSION', '4.0.4' ); 20 20 define( 'PFF_PAYSTACK_TABLE', 'paystack_forms_payments' ); 21 21 define( 'PFF_PLUGIN_BASENAME', plugin_basename(__FILE__) ); -
payment-forms-for-paystack/trunk/readme.txt
r3284067 r3286247 5 5 Requires at least: 5.0 6 6 Tested up to: 6.7 7 Stable tag: 4.0. 37 Stable tag: 4.0.4 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 92 92 93 93 == Changelog == 94 = 4.0.4 = 95 * Fixing the UAT error with the amount field and minimum amounts. 96 94 97 = 4.0.3 = 95 98 * Security update - Add extra sanitization to form fields
Note: See TracChangeset
for help on using the changeset viewer.