Plugin Directory

Changeset 2759078


Ignore:
Timestamp:
07/20/2022 09:58:54 AM (4 years ago)
Author:
themesgrove
Message:

Update to version 2.7.0 from GitHub

Location:
smartpay
Files:
2 added
20 edited
1 copied

Legend:

Unmodified
Added
Removed
  • smartpay/tags/2.7.0/app/Modules/Admin/Setting.php

    r2733692 r2759078  
    527527        $name_attr = ($args['multiple']) ? $name_attr . '[]' : $name_attr;
    528528
    529         $html = '<select ' . $nonce . ' id="smartpay_settings[' . smartpay_sanitize_key($args['id']) . ']" name="' . $name_attr . '" class="' . $class . '" data-placeholder="' . esc_html($placeholder) . '" ' . (($args['multiple']) ? 'multiple="true"' : '') . '>';
     529        if (!empty($args['style'])) {
     530            $html = '<select ' . $nonce . ' id="smartpay_settings[' . smartpay_sanitize_key($args['id']) . ']" name="' .
     531                $name_attr . '" class="' . $class . '" style="' . $args['style'] .'" data-placeholder="' . esc_html
     532                ($placeholder) .
     533                '" ' . (($args['multiple']) ? 'multiple="true"' : '') . '>';
     534        } else {
     535            $html = '<select ' . $nonce . ' id="smartpay_settings[' . smartpay_sanitize_key($args['id']) . ']" name="' .
     536                $name_attr . '" class="' . $class . '" data-placeholder="' . esc_html
     537                ($placeholder) .
     538                '" ' . (($args['multiple']) ? 'multiple="true"' : '') . '>';
     539        }
     540
    530541
    531542        foreach ($args['options'] as $option => $name) {
  • smartpay/tags/2.7.0/app/Modules/Customer/CreateUser.php

    r2726552 r2759078  
    2828                'user_pass'  => $password,
    2929                'user_email' => $email,
    30                 'role'       => 'Customer',
     30                'role'       => 'subscriber'
    3131            );
    3232
  • smartpay/tags/2.7.0/app/Modules/Integration/Integration.php

    r2733692 r2759078  
    115115                'excerpt'    => __('Quickest & easiest Malaysian online payment solution.', 'smartpay'),
    116116                'cover'      => SMARTPAY_PLUGIN_ASSETS . '/img/integrations/toyyibpay.png',
     117                'manager'    => null,
     118                'type'       => 'pro',
     119                'categories' => ['Payment Gateway'],
     120            ],
     121
     122            'paytm' => [
     123                'name'       => __('Paytm', 'smartpay'),
     124                'excerpt'    => __('Indian digital payments and financial services company.', 'smartpay'),
     125                'cover'      => SMARTPAY_PLUGIN_ASSETS . '/img/integrations/paytm.png',
    117126                'manager'    => null,
    118127                'type'       => 'pro',
  • smartpay/tags/2.7.0/app/Modules/Payment/Payment.php

    r2733692 r2759078  
    204204        $customer = Customer::where('email', $_data['smartpay_email'])->first();
    205205
    206         if ($customer->id) {
     206        if ($customer && $customer->id) {
    207207            $customer_id = $customer->id;
    208208        } else {
     
    250250        if (!empty($payment->id)) {
    251251            // check create WP user is enabled
    252             $enable_user_creation = (bool) smartpay_get_settings()['create_wp_user'] ?? false;
     252            $enable_user_creation = isset(smartpay_get_settings()['create_wp_user']) && smartpay_get_settings()
     253                ['create_wp_user'];
    253254            if ($enable_user_creation){
    254255                CreateUser::create_user($payment);
  • smartpay/tags/2.7.0/readme.txt

    r2741081 r2759078  
    55Tested up to: 6.0
    66Requires PHP: 7.4.0
    7 Stable Tag: 2.6.9
     7Stable Tag: 2.7.0
    88License: GNU Version 2 or later
    99
     
    7878- [Mollie](https://wpsmartpay.com/docs/wpsmartpay/configure-payment-methods/how-to-setup-mollie) - is one of the most used and popular payment gateways in Europe and supports various payment methods such as iDEAL, Apple Pay, GPay, Credit Card, PayPal, etc.
    7979- [toyyibPay](https://wpsmartpay.com/docs/wpsmartpay/configure-payment-methods/how-to-setup-toyyibpay) - is an online payment platform for businesses & individuals with the least expensive and free charge rates for certain deals.
     80- [Paytm](https://wpsmartpay.com/docs/wpsmartpay/configure-payment-methods/how-to-setup-paytm) - More popular Indian digital payments and financial services provider that allow to get the payments with various banks.
    8081- [bKash](#) - The most popular mobile payment gateway of Bangladesh. Integrate bKash easily with WP SmartPay.
    8182
     
    8788- RazorPay support near 100 of currencies [check your currency ](https://razorpay.com/accept-international-payments).
    8889- toyyibPay is only available in Malaysia .
     90- WPSmartPay currently provide for Indian rupee through Paytm.
    8991
    9092WP SmartPay lets you set the locale (language) for your payment forms as well as the preferred currency and date formats for your site's region.
     
    121123
    122124== Changelog ==
     125= [2.7.0] =
     126* Add - Paytm payment gateway support
     127* Fix - Warning message while creating a user and customer
     128* Fix - User role was not creating on the first payment
     129
    123130= [2.6.9] =
    124131* Fix - Mobile field does not appear when toyyibPay is a default payment gateway
  • smartpay/tags/2.7.0/smartpay.php

    r2741081 r2759078  
    66 * Plugin URI:  https://wpsmartpay.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
    77 * Tags: download manager, digital product, donation, ecommerce, paddle, stripe, paypal, document manager, file manager, download protection, recurring payment, donations, donation plugin, wordpress donation plugin, wp donation, fundraising, fundraiser, crowdfunding, wordpress donations, gutenberg, gutenberg donations, nonprofit, paypal donations, paypal donate, stripe donations, stripe donate, authorize.net, authorize.net donations, bkash, bkash payment,
    8  * Version:     2.6.9
     8 * Version:     2.7.0
    99 * Author:      WPSmartPay
    1010 * Author URI:  https://wpsmartpay.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
     
    2828defined('ABSPATH') || exit;
    2929
    30 define('SMARTPAY_VERSION', '2.6.9');
     30define('SMARTPAY_VERSION', '2.7.0');
    3131define('SMARTPAY_PLUGIN_FILE', __FILE__);
    3232define('SMARTPAY_PLUGIN_ASSETS', plugins_url('public', __FILE__));
  • smartpay/tags/2.7.0/vendor/autoload.php

    r2741081 r2759078  
    1010require_once __DIR__ . '/composer/autoload_real.php';
    1111
    12 return ComposerAutoloaderInita2f8719a154cb86be807f684b4f9cdb4::getLoader();
     12return ComposerAutoloaderInitf08c5552bc69f2d4f73bbe28f9da0abc::getLoader();
  • smartpay/tags/2.7.0/vendor/composer/autoload_real.php

    r2741081 r2759078  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInita2f8719a154cb86be807f684b4f9cdb4
     5class ComposerAutoloaderInitf08c5552bc69f2d4f73bbe28f9da0abc
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInita2f8719a154cb86be807f684b4f9cdb4', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInitf08c5552bc69f2d4f73bbe28f9da0abc', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInita2f8719a154cb86be807f684b4f9cdb4', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitf08c5552bc69f2d4f73bbe28f9da0abc', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInita2f8719a154cb86be807f684b4f9cdb4::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInitf08c5552bc69f2d4f73bbe28f9da0abc::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $includeFiles = \Composer\Autoload\ComposerStaticInita2f8719a154cb86be807f684b4f9cdb4::$files;
     36        $includeFiles = \Composer\Autoload\ComposerStaticInitf08c5552bc69f2d4f73bbe28f9da0abc::$files;
    3737        foreach ($includeFiles as $fileIdentifier => $file) {
    38             composerRequirea2f8719a154cb86be807f684b4f9cdb4($fileIdentifier, $file);
     38            composerRequiref08c5552bc69f2d4f73bbe28f9da0abc($fileIdentifier, $file);
    3939        }
    4040
     
    4848 * @return void
    4949 */
    50 function composerRequirea2f8719a154cb86be807f684b4f9cdb4($fileIdentifier, $file)
     50function composerRequiref08c5552bc69f2d4f73bbe28f9da0abc($fileIdentifier, $file)
    5151{
    5252    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • smartpay/tags/2.7.0/vendor/composer/autoload_static.php

    r2741081 r2759078  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInita2f8719a154cb86be807f684b4f9cdb4
     7class ComposerStaticInitf08c5552bc69f2d4f73bbe28f9da0abc
    88{
    99    public static $files = array (
     
    111111    {
    112112        return \Closure::bind(function () use ($loader) {
    113             $loader->prefixLengthsPsr4 = ComposerStaticInita2f8719a154cb86be807f684b4f9cdb4::$prefixLengthsPsr4;
    114             $loader->prefixDirsPsr4 = ComposerStaticInita2f8719a154cb86be807f684b4f9cdb4::$prefixDirsPsr4;
    115             $loader->classMap = ComposerStaticInita2f8719a154cb86be807f684b4f9cdb4::$classMap;
     113            $loader->prefixLengthsPsr4 = ComposerStaticInitf08c5552bc69f2d4f73bbe28f9da0abc::$prefixLengthsPsr4;
     114            $loader->prefixDirsPsr4 = ComposerStaticInitf08c5552bc69f2d4f73bbe28f9da0abc::$prefixDirsPsr4;
     115            $loader->classMap = ComposerStaticInitf08c5552bc69f2d4f73bbe28f9da0abc::$classMap;
    116116
    117117        }, null, ClassLoader::class);
  • smartpay/tags/2.7.0/vendor/composer/installed.php

    r2741081 r2759078  
    22    'root' => array(
    33        'name' => 'wp-smartpay/core',
    4         'pretty_version' => 'v2.6.9',
    5         'version' => '2.6.9.0',
    6         'reference' => '406e02060c725af9c7d592713c481a419c5b6dfa',
     4        'pretty_version' => 'v2.7.0',
     5        'version' => '2.7.0.0',
     6        'reference' => 'ff02ba6590ee90a2df5bc901ef8dc8088e1f70d9',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    108108        ),
    109109        'wp-smartpay/core' => array(
    110             'pretty_version' => 'v2.6.9',
    111             'version' => '2.6.9.0',
    112             'reference' => '406e02060c725af9c7d592713c481a419c5b6dfa',
     110            'pretty_version' => 'v2.7.0',
     111            'version' => '2.7.0.0',
     112            'reference' => 'ff02ba6590ee90a2df5bc901ef8dc8088e1f70d9',
    113113            'type' => 'library',
    114114            'install_path' => __DIR__ . '/../../',
  • smartpay/trunk/app/Modules/Admin/Setting.php

    r2733692 r2759078  
    527527        $name_attr = ($args['multiple']) ? $name_attr . '[]' : $name_attr;
    528528
    529         $html = '<select ' . $nonce . ' id="smartpay_settings[' . smartpay_sanitize_key($args['id']) . ']" name="' . $name_attr . '" class="' . $class . '" data-placeholder="' . esc_html($placeholder) . '" ' . (($args['multiple']) ? 'multiple="true"' : '') . '>';
     529        if (!empty($args['style'])) {
     530            $html = '<select ' . $nonce . ' id="smartpay_settings[' . smartpay_sanitize_key($args['id']) . ']" name="' .
     531                $name_attr . '" class="' . $class . '" style="' . $args['style'] .'" data-placeholder="' . esc_html
     532                ($placeholder) .
     533                '" ' . (($args['multiple']) ? 'multiple="true"' : '') . '>';
     534        } else {
     535            $html = '<select ' . $nonce . ' id="smartpay_settings[' . smartpay_sanitize_key($args['id']) . ']" name="' .
     536                $name_attr . '" class="' . $class . '" data-placeholder="' . esc_html
     537                ($placeholder) .
     538                '" ' . (($args['multiple']) ? 'multiple="true"' : '') . '>';
     539        }
     540
    530541
    531542        foreach ($args['options'] as $option => $name) {
  • smartpay/trunk/app/Modules/Customer/CreateUser.php

    r2726552 r2759078  
    2828                'user_pass'  => $password,
    2929                'user_email' => $email,
    30                 'role'       => 'Customer',
     30                'role'       => 'subscriber'
    3131            );
    3232
  • smartpay/trunk/app/Modules/Integration/Integration.php

    r2733692 r2759078  
    115115                'excerpt'    => __('Quickest & easiest Malaysian online payment solution.', 'smartpay'),
    116116                'cover'      => SMARTPAY_PLUGIN_ASSETS . '/img/integrations/toyyibpay.png',
     117                'manager'    => null,
     118                'type'       => 'pro',
     119                'categories' => ['Payment Gateway'],
     120            ],
     121
     122            'paytm' => [
     123                'name'       => __('Paytm', 'smartpay'),
     124                'excerpt'    => __('Indian digital payments and financial services company.', 'smartpay'),
     125                'cover'      => SMARTPAY_PLUGIN_ASSETS . '/img/integrations/paytm.png',
    117126                'manager'    => null,
    118127                'type'       => 'pro',
  • smartpay/trunk/app/Modules/Payment/Payment.php

    r2733692 r2759078  
    204204        $customer = Customer::where('email', $_data['smartpay_email'])->first();
    205205
    206         if ($customer->id) {
     206        if ($customer && $customer->id) {
    207207            $customer_id = $customer->id;
    208208        } else {
     
    250250        if (!empty($payment->id)) {
    251251            // check create WP user is enabled
    252             $enable_user_creation = (bool) smartpay_get_settings()['create_wp_user'] ?? false;
     252            $enable_user_creation = isset(smartpay_get_settings()['create_wp_user']) && smartpay_get_settings()
     253                ['create_wp_user'];
    253254            if ($enable_user_creation){
    254255                CreateUser::create_user($payment);
  • smartpay/trunk/readme.txt

    r2741081 r2759078  
    55Tested up to: 6.0
    66Requires PHP: 7.4.0
    7 Stable Tag: 2.6.9
     7Stable Tag: 2.7.0
    88License: GNU Version 2 or later
    99
     
    7878- [Mollie](https://wpsmartpay.com/docs/wpsmartpay/configure-payment-methods/how-to-setup-mollie) - is one of the most used and popular payment gateways in Europe and supports various payment methods such as iDEAL, Apple Pay, GPay, Credit Card, PayPal, etc.
    7979- [toyyibPay](https://wpsmartpay.com/docs/wpsmartpay/configure-payment-methods/how-to-setup-toyyibpay) - is an online payment platform for businesses & individuals with the least expensive and free charge rates for certain deals.
     80- [Paytm](https://wpsmartpay.com/docs/wpsmartpay/configure-payment-methods/how-to-setup-paytm) - More popular Indian digital payments and financial services provider that allow to get the payments with various banks.
    8081- [bKash](#) - The most popular mobile payment gateway of Bangladesh. Integrate bKash easily with WP SmartPay.
    8182
     
    8788- RazorPay support near 100 of currencies [check your currency ](https://razorpay.com/accept-international-payments).
    8889- toyyibPay is only available in Malaysia .
     90- WPSmartPay currently provide for Indian rupee through Paytm.
    8991
    9092WP SmartPay lets you set the locale (language) for your payment forms as well as the preferred currency and date formats for your site's region.
     
    121123
    122124== Changelog ==
     125= [2.7.0] =
     126* Add - Paytm payment gateway support
     127* Fix - Warning message while creating a user and customer
     128* Fix - User role was not creating on the first payment
     129
    123130= [2.6.9] =
    124131* Fix - Mobile field does not appear when toyyibPay is a default payment gateway
  • smartpay/trunk/smartpay.php

    r2741081 r2759078  
    66 * Plugin URI:  https://wpsmartpay.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
    77 * Tags: download manager, digital product, donation, ecommerce, paddle, stripe, paypal, document manager, file manager, download protection, recurring payment, donations, donation plugin, wordpress donation plugin, wp donation, fundraising, fundraiser, crowdfunding, wordpress donations, gutenberg, gutenberg donations, nonprofit, paypal donations, paypal donate, stripe donations, stripe donate, authorize.net, authorize.net donations, bkash, bkash payment,
    8  * Version:     2.6.9
     8 * Version:     2.7.0
    99 * Author:      WPSmartPay
    1010 * Author URI:  https://wpsmartpay.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
     
    2828defined('ABSPATH') || exit;
    2929
    30 define('SMARTPAY_VERSION', '2.6.9');
     30define('SMARTPAY_VERSION', '2.7.0');
    3131define('SMARTPAY_PLUGIN_FILE', __FILE__);
    3232define('SMARTPAY_PLUGIN_ASSETS', plugins_url('public', __FILE__));
  • smartpay/trunk/vendor/autoload.php

    r2741081 r2759078  
    1010require_once __DIR__ . '/composer/autoload_real.php';
    1111
    12 return ComposerAutoloaderInita2f8719a154cb86be807f684b4f9cdb4::getLoader();
     12return ComposerAutoloaderInitf08c5552bc69f2d4f73bbe28f9da0abc::getLoader();
  • smartpay/trunk/vendor/composer/autoload_real.php

    r2741081 r2759078  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInita2f8719a154cb86be807f684b4f9cdb4
     5class ComposerAutoloaderInitf08c5552bc69f2d4f73bbe28f9da0abc
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInita2f8719a154cb86be807f684b4f9cdb4', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInitf08c5552bc69f2d4f73bbe28f9da0abc', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInita2f8719a154cb86be807f684b4f9cdb4', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitf08c5552bc69f2d4f73bbe28f9da0abc', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInita2f8719a154cb86be807f684b4f9cdb4::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInitf08c5552bc69f2d4f73bbe28f9da0abc::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $includeFiles = \Composer\Autoload\ComposerStaticInita2f8719a154cb86be807f684b4f9cdb4::$files;
     36        $includeFiles = \Composer\Autoload\ComposerStaticInitf08c5552bc69f2d4f73bbe28f9da0abc::$files;
    3737        foreach ($includeFiles as $fileIdentifier => $file) {
    38             composerRequirea2f8719a154cb86be807f684b4f9cdb4($fileIdentifier, $file);
     38            composerRequiref08c5552bc69f2d4f73bbe28f9da0abc($fileIdentifier, $file);
    3939        }
    4040
     
    4848 * @return void
    4949 */
    50 function composerRequirea2f8719a154cb86be807f684b4f9cdb4($fileIdentifier, $file)
     50function composerRequiref08c5552bc69f2d4f73bbe28f9da0abc($fileIdentifier, $file)
    5151{
    5252    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • smartpay/trunk/vendor/composer/autoload_static.php

    r2741081 r2759078  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInita2f8719a154cb86be807f684b4f9cdb4
     7class ComposerStaticInitf08c5552bc69f2d4f73bbe28f9da0abc
    88{
    99    public static $files = array (
     
    111111    {
    112112        return \Closure::bind(function () use ($loader) {
    113             $loader->prefixLengthsPsr4 = ComposerStaticInita2f8719a154cb86be807f684b4f9cdb4::$prefixLengthsPsr4;
    114             $loader->prefixDirsPsr4 = ComposerStaticInita2f8719a154cb86be807f684b4f9cdb4::$prefixDirsPsr4;
    115             $loader->classMap = ComposerStaticInita2f8719a154cb86be807f684b4f9cdb4::$classMap;
     113            $loader->prefixLengthsPsr4 = ComposerStaticInitf08c5552bc69f2d4f73bbe28f9da0abc::$prefixLengthsPsr4;
     114            $loader->prefixDirsPsr4 = ComposerStaticInitf08c5552bc69f2d4f73bbe28f9da0abc::$prefixDirsPsr4;
     115            $loader->classMap = ComposerStaticInitf08c5552bc69f2d4f73bbe28f9da0abc::$classMap;
    116116
    117117        }, null, ClassLoader::class);
  • smartpay/trunk/vendor/composer/installed.php

    r2741081 r2759078  
    22    'root' => array(
    33        'name' => 'wp-smartpay/core',
    4         'pretty_version' => 'v2.6.9',
    5         'version' => '2.6.9.0',
    6         'reference' => '406e02060c725af9c7d592713c481a419c5b6dfa',
     4        'pretty_version' => 'v2.7.0',
     5        'version' => '2.7.0.0',
     6        'reference' => 'ff02ba6590ee90a2df5bc901ef8dc8088e1f70d9',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    108108        ),
    109109        'wp-smartpay/core' => array(
    110             'pretty_version' => 'v2.6.9',
    111             'version' => '2.6.9.0',
    112             'reference' => '406e02060c725af9c7d592713c481a419c5b6dfa',
     110            'pretty_version' => 'v2.7.0',
     111            'version' => '2.7.0.0',
     112            'reference' => 'ff02ba6590ee90a2df5bc901ef8dc8088e1f70d9',
    113113            'type' => 'library',
    114114            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.