Plugin Directory

Changeset 3340332


Ignore:
Timestamp:
08/06/2025 11:42:00 AM (7 months ago)
Author:
paystack
Message:

Update to version 4.0.5 from GitHub

Location:
payment-forms-for-paystack
Files:
4 added
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • payment-forms-for-paystack/tags/4.0.5/README.md

    r3279082 r3340332  
    33# Payment Forms for Paystack
    44
    5 Welcome to the Payment Forms for Paystack repository on GitHub. Here you can browse the source, look at open issues and keep track of development.
     5Welcome to the Paysment Forms for Paystack repository on GitHub. Here you can browse the source, look at open issues and keep track of development.
    66
    77If you are a developer, you can join our Developer Community on [Slack](https://slack.paystack.com).
  • payment-forms-for-paystack/tags/4.0.5/assets/js/paystack-public.js

    r3286247 r3340332  
    165165                }
    166166            );
     167
    167168            if ($("#pf-quantity").length) {
    168169                $( "#pf-quantity" ).on( 'change', function(event){
     
    206207                        .val();
    207208                    }
    208                    
    209209
    210210                    if (Number(amount) > 0) {
     
    229229                        return false;
    230230                    }
     231
    231232                    if (checkMinimumVal() == false) {
    232233                        $(this)
     
    596597                }
    597598            );
    598 
    599599
    600600            function checkMinimumVal() {
  • payment-forms-for-paystack/tags/4.0.5/includes/classes/class-field-shortcodes.php

    r3284067 r3340332  
    314314
    315315    /**
    316      * Sanitize and escape value for HTML rendering.
    317      *
    318      * @param string $value
     316     * Sanitize and escape a string for safe HTML output.
     317     *
     318     * @param string $value The input string to sanitize and escape.
    319319     * @return string The sanitized and escaped string.
    320320     */
  • payment-forms-for-paystack/tags/4.0.5/includes/classes/class-forms-update.php

    r3210130 r3340332  
    290290            // Add in our "normal" meta boxes
    291291            add_meta_box( 'form_data', esc_html__( 'Extra Form Description', 'pff-paystack' ), [ $this, 'form_data' ], 'paystack_form', 'normal', 'default' );
    292             add_meta_box( 'email_data', esc_html__( 'Email Receipt Settings', 'pff-paystack' ), [ $this, 'email_data' ], 'paystack_form', 'normal', 'default' );
     292            //add_meta_box( 'email_data', esc_html__( 'Email Receipt Settings', 'pff-paystack' ), [ $this, 'email_data' ], 'paystack_form', 'normal', 'default' );
    293293
    294294            // Add in our "side" meta boxes
     
    456456     * @return void
    457457     */
    458     public function email_data() {
     458    /*public function email_data() {
    459459        $html   = [];
    460460        // Echo out the field
     
    479479       
    480480        echo wp_kses( implode( '', $html ), $this->allowed_html );
    481     }
     481    }*/
    482482
    483483    /**
  • payment-forms-for-paystack/tags/4.0.5/includes/classes/class-helpers.php

    r3238170 r3340332  
    4444        $this->defaults = [
    4545            'amount'              => 0,
     46            'merchant'            => '',
    4647            'paybtn'              => esc_html__( 'Pay', 'pff-paystack' ),
    4748            'successmsg'          => esc_html__( 'Thank you for paying!', 'pff-paystack' ),
  • payment-forms-for-paystack/tags/4.0.5/includes/classes/class-settings.php

    r3279082 r3340332  
    102102        foreach ( $fields as $group => $fields ) {
    103103            foreach ( $fields as $field_key => $args ) {
    104                 register_setting( 'kkd-pff-paystack-settings-group', $field_key );
     104                register_setting( 'kkd-pff-paystack-settings-group', $field_key, [ $this, 'sanitise_field' ] );
    105105            }
    106106        }
     
    197197     *
    198198     * @param string $value
    199      * @return string
     199     * /
    200200     *
    201201     */
  • payment-forms-for-paystack/tags/4.0.5/paystack-forms.php

    r3286247 r3340332  
    44  Plugin URI:   https://github.com/PaystackHQ/Wordpress-Payment-forms-for-Paystack
    55  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.4
     6  Version:      4.0.5
    77  Author:       Paystack
    88  Author URI:   http://paystack.com
     
    1717define( 'PFF_PAYSTACK_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
    1818define( 'PFF_PAYSTACK_MAIN_FILE', __FILE__ );
    19 define( 'PFF_PAYSTACK_VERSION', '4.0.4' );
     19define( 'PFF_PAYSTACK_VERSION', '4.0.5' );
    2020define( 'PFF_PAYSTACK_TABLE', 'paystack_forms_payments' );
    2121define( 'PFF_PLUGIN_BASENAME', plugin_basename(__FILE__) );
  • payment-forms-for-paystack/tags/4.0.5/readme.txt

    r3286247 r3340332  
    11=== Payment Forms for Paystack ===
    2 Contributors: paystack, kendysond, steveamaza, krugazul, feedmymedia
     2Contributors: paystack, kendysond, steveamaza, krugazul, feedmymedia, kaneahabagale
    33Donate link: https://paystack.com/demo
    44Tags: paystack, recurrent payments, donation, forms, payments
    55Requires at least: 5.0
    6 Tested up to: 6.7
    7 Stable tag: 4.0.4
     6Tested up to: 6.8.1
     7Stable tag: 4.0.5
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    9292
    9393== Changelog ==
     94
     95= 4.0.5 =
     96* * Compatibility with WordPress 6.8.1 and PHP 8.4.4
     97
    9498= 4.0.4 =
    9599* Fixing the UAT error with the amount field and minimum amounts.
  • payment-forms-for-paystack/trunk/README.md

    r3279082 r3340332  
    33# Payment Forms for Paystack
    44
    5 Welcome to the Payment Forms for Paystack repository on GitHub. Here you can browse the source, look at open issues and keep track of development.
     5Welcome to the Paysment Forms for Paystack repository on GitHub. Here you can browse the source, look at open issues and keep track of development.
    66
    77If you are a developer, you can join our Developer Community on [Slack](https://slack.paystack.com).
  • payment-forms-for-paystack/trunk/assets/js/paystack-public.js

    r3286247 r3340332  
    165165                }
    166166            );
     167
    167168            if ($("#pf-quantity").length) {
    168169                $( "#pf-quantity" ).on( 'change', function(event){
     
    206207                        .val();
    207208                    }
    208                    
    209209
    210210                    if (Number(amount) > 0) {
     
    229229                        return false;
    230230                    }
     231
    231232                    if (checkMinimumVal() == false) {
    232233                        $(this)
     
    596597                }
    597598            );
    598 
    599599
    600600            function checkMinimumVal() {
  • payment-forms-for-paystack/trunk/includes/classes/class-field-shortcodes.php

    r3284067 r3340332  
    314314
    315315    /**
    316      * Sanitize and escape value for HTML rendering.
    317      *
    318      * @param string $value
     316     * Sanitize and escape a string for safe HTML output.
     317     *
     318     * @param string $value The input string to sanitize and escape.
    319319     * @return string The sanitized and escaped string.
    320320     */
  • payment-forms-for-paystack/trunk/includes/classes/class-forms-update.php

    r3210130 r3340332  
    290290            // Add in our "normal" meta boxes
    291291            add_meta_box( 'form_data', esc_html__( 'Extra Form Description', 'pff-paystack' ), [ $this, 'form_data' ], 'paystack_form', 'normal', 'default' );
    292             add_meta_box( 'email_data', esc_html__( 'Email Receipt Settings', 'pff-paystack' ), [ $this, 'email_data' ], 'paystack_form', 'normal', 'default' );
     292            //add_meta_box( 'email_data', esc_html__( 'Email Receipt Settings', 'pff-paystack' ), [ $this, 'email_data' ], 'paystack_form', 'normal', 'default' );
    293293
    294294            // Add in our "side" meta boxes
     
    456456     * @return void
    457457     */
    458     public function email_data() {
     458    /*public function email_data() {
    459459        $html   = [];
    460460        // Echo out the field
     
    479479       
    480480        echo wp_kses( implode( '', $html ), $this->allowed_html );
    481     }
     481    }*/
    482482
    483483    /**
  • payment-forms-for-paystack/trunk/includes/classes/class-helpers.php

    r3238170 r3340332  
    4444        $this->defaults = [
    4545            'amount'              => 0,
     46            'merchant'            => '',
    4647            'paybtn'              => esc_html__( 'Pay', 'pff-paystack' ),
    4748            'successmsg'          => esc_html__( 'Thank you for paying!', 'pff-paystack' ),
  • payment-forms-for-paystack/trunk/includes/classes/class-settings.php

    r3279082 r3340332  
    102102        foreach ( $fields as $group => $fields ) {
    103103            foreach ( $fields as $field_key => $args ) {
    104                 register_setting( 'kkd-pff-paystack-settings-group', $field_key );
     104                register_setting( 'kkd-pff-paystack-settings-group', $field_key, [ $this, 'sanitise_field' ] );
    105105            }
    106106        }
     
    197197     *
    198198     * @param string $value
    199      * @return string
     199     * /
    200200     *
    201201     */
  • payment-forms-for-paystack/trunk/paystack-forms.php

    r3286247 r3340332  
    44  Plugin URI:   https://github.com/PaystackHQ/Wordpress-Payment-forms-for-Paystack
    55  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.4
     6  Version:      4.0.5
    77  Author:       Paystack
    88  Author URI:   http://paystack.com
     
    1717define( 'PFF_PAYSTACK_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
    1818define( 'PFF_PAYSTACK_MAIN_FILE', __FILE__ );
    19 define( 'PFF_PAYSTACK_VERSION', '4.0.4' );
     19define( 'PFF_PAYSTACK_VERSION', '4.0.5' );
    2020define( 'PFF_PAYSTACK_TABLE', 'paystack_forms_payments' );
    2121define( 'PFF_PLUGIN_BASENAME', plugin_basename(__FILE__) );
  • payment-forms-for-paystack/trunk/readme.txt

    r3286247 r3340332  
    11=== Payment Forms for Paystack ===
    2 Contributors: paystack, kendysond, steveamaza, krugazul, feedmymedia
     2Contributors: paystack, kendysond, steveamaza, krugazul, feedmymedia, kaneahabagale
    33Donate link: https://paystack.com/demo
    44Tags: paystack, recurrent payments, donation, forms, payments
    55Requires at least: 5.0
    6 Tested up to: 6.7
    7 Stable tag: 4.0.4
     6Tested up to: 6.8.1
     7Stable tag: 4.0.5
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    9292
    9393== Changelog ==
     94
     95= 4.0.5 =
     96* * Compatibility with WordPress 6.8.1 and PHP 8.4.4
     97
    9498= 4.0.4 =
    9599* Fixing the UAT error with the amount field and minimum amounts.
Note: See TracChangeset for help on using the changeset viewer.