Plugin Directory

Changeset 2895596


Ignore:
Timestamp:
04/07/2023 12:50:27 PM (3 years ago)
Author:
idokd
Message:

Update to version 2.3.2 from GitHub

Location:
simple-payment
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • simple-payment/tags/2.3.2/addons/woocommerce/js/simple-payment-woocommerce-checkout.js

    r2589463 r2895596  
    1717        },
    1818
    19         scroll_to: function(o) {
    20             $.scroll_to_notices($('[sp-data="container"]'));
     19        scroll_to: function( o ) {
     20            $.scroll_to_notices( $ ('[sp-data="container"]' ) );
    2121        },
    2222
     
    2727
    2828        place_order: function() {
     29            console.log( 'SimplePayment place_order' );
    2930            SimplePaymentWooCommerce.form_unblock();
    30             if (!SimplePayment.params['woocommerce_show_checkout']) return;
    31             if (!(SimplePayment.params['display'] == 'iframe' ||
    32                 SimplePayment.params['display'] == 'modal')) return;
     31            if ( !SimplePayment.params[ 'woocommerce_show_checkout' ] ) return;
     32            if ( !( SimplePayment.params[ 'display' ] == 'iframe' ||
     33                SimplePayment.params[ 'display' ] == 'modal' ) ) return;
    3334
    34             $(document).ajaxSuccess(SimplePaymentWooCommerce.place_order_success);
     35            $( document ).ajaxSuccess( SimplePaymentWooCommerce.place_order_success );
    3536            if ( 'place_order' != this.hook_level ) return;
    3637            // TODO: if wish to hook on place_order, process all information here.
    37             return(false);
     38            return( false );
    3839        },
    39 
    40         place_order_success: function(event, xhr, options, result) {
    41             if ( !SimplePayment.params[ 'woocommerce_show_checkout' ] ) return;
    42             if ( !( SimplePayment.params[ 'display' ] == 'iframe' ||
    43                 SimplePayment.params['display'] == 'modal' ) ) return;
    44             if ( 'checkout_place_order_success' == event.type) return(true); // false for checkout error, true to process redirect
    45             if ( !options || !result || options['url'] != wc_checkout_params.checkout_url) return;
    46             if ('failure' === result.result) return(true);
     40 
     41        place_order_success: function( event, xhr, options, result ) {
     42            //if ( 'place_order_success' !== this.hook_level ) return;
     43            if ( 'checkout_place_order_success' !== event.type
     44                || !SimplePayment.params[ 'woocommerce_show_checkout' ]
     45                || !( SimplePayment.params[ 'display' ] == 'iframe' ||
     46                    SimplePayment.params[ 'display' ] == 'modal' ) ) return;
     47            //if ( 'checkout_place_order_success' == event.type ) return( true ); // false for checkout error, true to process redirect
     48            console.log( 'SimplePayment place_order_success - processing' );
     49            if ( typeof( result ) == 'undefined' ) { // Adapttion for the WC 7.0 while using AbortContoller and not global ajax
     50                result = xhr;
     51            } else {
     52                if ( !options || !result || options[ 'url' ] != wc_checkout_params.checkout_url ) return;
     53            }
     54            if ( 'failure' === result.result ) return( true ); // probably should be false
    4755            // We are using error on original checkout process, we might consider using success
    4856            $( document.body ).on( 'checkout_error', this.scroll_to );
     
    5462
    5563    };
    56     $(document).on('simple_payment_init', function() {
    57         return(false); // Do not continue with the rest of simple payment init
    58     });
     64    $( document ).on('simple_payment_init', function() {
     65        return( false ); // Do not continue with the rest of simple payment init
     66    } );
    5967    this.SimplePaymentWooCommerce = SimplePaymentWooCommerce.init();
    60 })(jQuery);
     68 })( jQuery );
  • simple-payment/tags/2.3.2/languages/simple-payment.pot

    r2881380 r2895596  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Simple Payment 2.2.9\n"
     5"Project-Id-Version: Simple Payment 2.3.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/simple-payment\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-03-16T16:19:23+00:00\n"
     12"POT-Creation-Date: 2023-04-07T12:49:35+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.6.0\n"
  • simple-payment/tags/2.3.2/readme.txt

    r2881380 r2895596  
    44Tags: credit card, simple payment, donation, membership, checkout, payment request, payment gateway, sales, woocommerce, store, ecommerce, e-commerce, commerce, gutenberg, elementor, cardcom, icount, icredit, payme, isracard, paypal
    55Requires at least: 4.6
    6 Tested up to: 6.1.1
    7 Stable tag: 2.3.0
     6Tested up to: 6.2.0
     7Stable tag: 2.3.2
    88Requires PHP: 5.4
    99License: GPLv2 or later
  • simple-payment/tags/2.3.2/simple-payment-plugin.php

    r2881380 r2895596  
    44 * Plugin URI: https://simple-payment.yalla-ya.com
    55 * Description: Simple Payment enables integration with multiple payment gateways, and customize multiple payment forms.
    6  * Version: 2.3.0
     6 * Version: 2.3.2
    77 * Author: Ido Kobelkowsky / yalla ya!
    88 * Author URI: https://github.com/idokd
     
    1010 * Text Domain: simple-payment
    1111 * Domain Path: /languages
    12  * WC tested up to: 7.5
     12 * WC tested up to: 7.5.1
    1313 * WC requires at least: 2.6
    1414 */
  • simple-payment/tags/2.3.2/vendor/yalla-ya/simple-payment/Engines/Cardcom.php

    r2881379 r2895596  
    178178    // TODO: fetch VISA, YEAR, MONTH, ID???
    179179    $token = null;
    180     if ($status['Token']) {
     180    if ( isset( $status[ 'Token' ] ) && $status[ 'Token' ] ) {
    181181      $token = [
    182182          'token' => $status['Token'],
     
    189189    }
    190190    $response = $status;
    191     $this->confirmation_code = $response['InternalDealNumber'];
     191    $this->confirmation_code = isset( $response[ 'InternalDealNumber' ] ) ? $response[ 'InternalDealNumber' ] : null;
    192192    $this->save([
    193193      'transaction_id' => $this->transaction,
  • simple-payment/trunk/addons/woocommerce/js/simple-payment-woocommerce-checkout.js

    r2589463 r2895596  
    1717        },
    1818
    19         scroll_to: function(o) {
    20             $.scroll_to_notices($('[sp-data="container"]'));
     19        scroll_to: function( o ) {
     20            $.scroll_to_notices( $ ('[sp-data="container"]' ) );
    2121        },
    2222
     
    2727
    2828        place_order: function() {
     29            console.log( 'SimplePayment place_order' );
    2930            SimplePaymentWooCommerce.form_unblock();
    30             if (!SimplePayment.params['woocommerce_show_checkout']) return;
    31             if (!(SimplePayment.params['display'] == 'iframe' ||
    32                 SimplePayment.params['display'] == 'modal')) return;
     31            if ( !SimplePayment.params[ 'woocommerce_show_checkout' ] ) return;
     32            if ( !( SimplePayment.params[ 'display' ] == 'iframe' ||
     33                SimplePayment.params[ 'display' ] == 'modal' ) ) return;
    3334
    34             $(document).ajaxSuccess(SimplePaymentWooCommerce.place_order_success);
     35            $( document ).ajaxSuccess( SimplePaymentWooCommerce.place_order_success );
    3536            if ( 'place_order' != this.hook_level ) return;
    3637            // TODO: if wish to hook on place_order, process all information here.
    37             return(false);
     38            return( false );
    3839        },
    39 
    40         place_order_success: function(event, xhr, options, result) {
    41             if ( !SimplePayment.params[ 'woocommerce_show_checkout' ] ) return;
    42             if ( !( SimplePayment.params[ 'display' ] == 'iframe' ||
    43                 SimplePayment.params['display'] == 'modal' ) ) return;
    44             if ( 'checkout_place_order_success' == event.type) return(true); // false for checkout error, true to process redirect
    45             if ( !options || !result || options['url'] != wc_checkout_params.checkout_url) return;
    46             if ('failure' === result.result) return(true);
     40 
     41        place_order_success: function( event, xhr, options, result ) {
     42            //if ( 'place_order_success' !== this.hook_level ) return;
     43            if ( 'checkout_place_order_success' !== event.type
     44                || !SimplePayment.params[ 'woocommerce_show_checkout' ]
     45                || !( SimplePayment.params[ 'display' ] == 'iframe' ||
     46                    SimplePayment.params[ 'display' ] == 'modal' ) ) return;
     47            //if ( 'checkout_place_order_success' == event.type ) return( true ); // false for checkout error, true to process redirect
     48            console.log( 'SimplePayment place_order_success - processing' );
     49            if ( typeof( result ) == 'undefined' ) { // Adapttion for the WC 7.0 while using AbortContoller and not global ajax
     50                result = xhr;
     51            } else {
     52                if ( !options || !result || options[ 'url' ] != wc_checkout_params.checkout_url ) return;
     53            }
     54            if ( 'failure' === result.result ) return( true ); // probably should be false
    4755            // We are using error on original checkout process, we might consider using success
    4856            $( document.body ).on( 'checkout_error', this.scroll_to );
     
    5462
    5563    };
    56     $(document).on('simple_payment_init', function() {
    57         return(false); // Do not continue with the rest of simple payment init
    58     });
     64    $( document ).on('simple_payment_init', function() {
     65        return( false ); // Do not continue with the rest of simple payment init
     66    } );
    5967    this.SimplePaymentWooCommerce = SimplePaymentWooCommerce.init();
    60 })(jQuery);
     68 })( jQuery );
  • simple-payment/trunk/languages/simple-payment.pot

    r2881380 r2895596  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Simple Payment 2.2.9\n"
     5"Project-Id-Version: Simple Payment 2.3.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/simple-payment\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-03-16T16:19:23+00:00\n"
     12"POT-Creation-Date: 2023-04-07T12:49:35+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.6.0\n"
  • simple-payment/trunk/readme.txt

    r2881380 r2895596  
    44Tags: credit card, simple payment, donation, membership, checkout, payment request, payment gateway, sales, woocommerce, store, ecommerce, e-commerce, commerce, gutenberg, elementor, cardcom, icount, icredit, payme, isracard, paypal
    55Requires at least: 4.6
    6 Tested up to: 6.1.1
    7 Stable tag: 2.3.0
     6Tested up to: 6.2.0
     7Stable tag: 2.3.2
    88Requires PHP: 5.4
    99License: GPLv2 or later
  • simple-payment/trunk/simple-payment-plugin.php

    r2881380 r2895596  
    44 * Plugin URI: https://simple-payment.yalla-ya.com
    55 * Description: Simple Payment enables integration with multiple payment gateways, and customize multiple payment forms.
    6  * Version: 2.3.0
     6 * Version: 2.3.2
    77 * Author: Ido Kobelkowsky / yalla ya!
    88 * Author URI: https://github.com/idokd
     
    1010 * Text Domain: simple-payment
    1111 * Domain Path: /languages
    12  * WC tested up to: 7.5
     12 * WC tested up to: 7.5.1
    1313 * WC requires at least: 2.6
    1414 */
  • simple-payment/trunk/vendor/yalla-ya/simple-payment/Engines/Cardcom.php

    r2881379 r2895596  
    178178    // TODO: fetch VISA, YEAR, MONTH, ID???
    179179    $token = null;
    180     if ($status['Token']) {
     180    if ( isset( $status[ 'Token' ] ) && $status[ 'Token' ] ) {
    181181      $token = [
    182182          'token' => $status['Token'],
     
    189189    }
    190190    $response = $status;
    191     $this->confirmation_code = $response['InternalDealNumber'];
     191    $this->confirmation_code = isset( $response[ 'InternalDealNumber' ] ) ? $response[ 'InternalDealNumber' ] : null;
    192192    $this->save([
    193193      'transaction_id' => $this->transaction,
Note: See TracChangeset for help on using the changeset viewer.