Plugin Directory

Changeset 2433401


Ignore:
Timestamp:
12/07/2020 05:23:32 PM (5 years ago)
Author:
quadpay
Message:
  • Tweak - added attribute to ES5 script to maximize browser support
  • Tweak - improved readme description installation
  • Compatibility - tested up to WordPress 5.6.0 and WooCommerce 4.8.0
Location:
quadpay-gateway-for-woocommerce
Files:
15 added
3 edited

Legend:

Unmodified
Added
Removed
  • quadpay-gateway-for-woocommerce/trunk/README.md

    r2347738 r2433401  
    1212Activate the plugin, enter the API key and check the settings page.
    1313
     141. Login to the WordPress Admin Dashboard and go to Plugins.
     15   ![WordPress Admin Dashboard Plugins](https://files.readme.io/9b37eb6-Admin_Dashboard.jpg)
     162. Click on Add New.
     17   ![WordPress Admin Dashboard Add New Plugin](https://files.readme.io/7c49a8f-Add_New_Plugin.jpg)
     183. Click on Upload Plugin.
     19   ![WordPress Admin Dashboard Upload Plugin](https://files.readme.io/f0463a7-Upload_Plugin.jpg)
     204. Click on Choose File and find the location of where you downloaded the plugin. Select the zipped plugin file, and click on Install Now.
     21   ![WordPress Admin Dashboard Upload Plugin](https://files.readme.io/88e7c4d-Choose_File_Install.jpg)
     225. After successful installation, click on Activate Plugin.
     23   ![WordPress Admin Dashboard Activate Plugin](https://files.readme.io/9b37eb6-Admin_Dashboard.jpghttps://files.readme.io/b67268e-Activate_Plugin.jpg)
     246. Go back to the Dashboard, select Plugins, WooCommerce QuadPay Gateway plugin now appears in the list of plugins. To configure click on Settings.
     25   ![WordPress Admin Dashboard Plugin Setting](https://files.readme.io/ec42b53-Select_QP_Settings.jpg)
     26
    1427## Frequently Asked Questions
    1528
     
    2437### Is the plugin for free?
    2538
    26 The source code is freely available, but you need a QuadPay client ID and client secret to provide your customers a buy know, pay later option. Please sign up on https://www.quadpay.com/signup-merchant/.
     39The source code is freely available, but you need a QuadPay client ID and client secret to provide your customers a buy now, pay later option. Please sign up on https://www.quadpay.com/signup-merchant/.
    2740
    2841### Why do you load external files?
    2942
    30 The plugin is loading an external files on the product detail page, the cart and checkout page. This javascript file is needed to show up the QuadPay information and is provided on the fly. In some cases QuadPay provides a dedicated file for the individual merchant.
     43The plugin is loading external files on the product detail page, the cart and checkout page. This javascript file is needed to show up the QuadPay information and is provided on the fly. In some cases QuadPay provides a dedicated file for the individual merchant.
    3144
    3245### I miss a feature. What to do?
  • quadpay-gateway-for-woocommerce/trunk/quadpay.php

    r2378243 r2433401  
    55Author: QuadPay, Inc.
    66Author URI: https://www.quadpay.com
    7 Version: 1.3.7
     7Version: 1.3.8
    88WC requires at least: 3.1.0
    9 WC tested up to: 4.5.1
     9WC tested up to: 4.8.0
    1010*/
    1111
    1212add_action( 'plugins_loaded', 'quadpay_wc_gateway', 0 );
    1313
     14/**
     15 *
     16 */
    1417function quadpay_wc_gateway() {
    1518
     
    14631466    add_action( 'wp_enqueue_scripts', 'quadpay_wc_frontend_js' );
    14641467
     1468    if( !is_admin() ) {
     1469        /**
     1470         * Add defer attribute
     1471         *
     1472         * @param $tag
     1473         * @param $handle
     1474         *
     1475         * @return string|string[]
     1476         *
     1477         * @since 1.3.8
     1478         */
     1479        function add_defer_attribute( $tag, $handle ) {
     1480
     1481            // if the unique handle/name of the registered script has 'defer' in it
     1482            if ( strpos( $handle, 'defer' ) !== false ) {
     1483                // return the tag with the defer attribute
     1484                return str_replace( '<script ', '<script defer nomodule ', $tag );
     1485            }
     1486            // otherwise skip
     1487            else {
     1488                return $tag;
     1489            }
     1490        }
     1491        add_filter('script_loader_tag', 'add_defer_attribute', 10, 2);
     1492    }
     1493
    14651494}
    14661495
  • quadpay-gateway-for-woocommerce/trunk/readme.txt

    r2378243 r2433401  
    33* Tags: QuadPay, WooCommerce, payment, gateway
    44* Requires at least: 4.7
    5 * Tested up to: 5.5.1
    6 * Stable tag: 1.3.7
     5* Tested up to: 5.6.0
     6* Stable tag: 1.3.8
    77* Requires PHP: 7.0
    88* License: GPLv3
     
    5454
    5555== Changelog ==
     56= 1.3.8 =
     57* Tweak - added attribute to ES5 script to maximize browser support
     58* Tweak - improved readme description installation
     59* Compatibility - tested up to WordPress 5.6.0 and WooCommerce 4.8.0
     60
    5661= 1.3.7 =
    5762* Tweak - logging improvements
Note: See TracChangeset for help on using the changeset viewer.