Plugin Directory

Changeset 2523108


Ignore:
Timestamp:
04/29/2021 05:24:40 AM (5 years ago)
Author:
idofri
Message:

new version-20210429

Location:
woo-pelecard-gateway/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • woo-pelecard-gateway/trunk/includes/Gateway.php

    r2520937 r2523108  
    11901190        }
    11911191
    1192         // Security check
    1193         if ( ! $transaction->validate() ) {
    1194             return;
    1195         }
     1192        // Catch 3DSecure failures
     1193        $transaction->set_validate( ! $transaction->is_3ds_failure() );
    11961194
    11971195        if ( is_add_payment_method_page() ) {
     
    12291227            wp_redirect( wc_get_endpoint_url( 'add-payment-method' ) );
    12301228            exit();
     1229        }
     1230
     1231        // Security check
     1232        if ( ! $transaction->validate() ) {
     1233            return;
    12311234        }
    12321235
  • woo-pelecard-gateway/trunk/includes/Plugin.php

    r2520937 r2523108  
    1818     * @var string $version
    1919     */
    20     public static $version = '1.4.4';
     20    public static $version = '1.4.5';
    2121
    2222    /**
  • woo-pelecard-gateway/trunk/includes/Transaction.php

    r2460563 r2523108  
    3636     *
    3737     * @param string $transaction_id
    38      * @param int    $order_id
    3938     */
    4039    public function __construct( string $transaction_id = '' ) {
     
    509508        return 301 === (int) $this->get_status_code();
    510509    }
     510
     511    /**
     512     * @return bool
     513     */
     514    public function is_3ds_failure(): bool {
     515        return 650 === (int) $this->get_status_code();
     516    }
    511517}
  • woo-pelecard-gateway/trunk/readme.txt

    r2520937 r2523108  
    44Requires at least: 5.3
    55Tested up to: 5.7
    6 Stable tag: 1.4.4
     6Stable tag: 1.4.5
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5555
    5656== Changelog ==
     57
     58= 1.4.5 =
     59* Bypass validation for 3DS failed transactions.
    5760
    5861= 1.4.4 =
  • woo-pelecard-gateway/trunk/woocommerce-pelecard-gateway.php

    r2520937 r2523108  
    44 * Plugin URI: https://wordpress.org/plugins/woo-pelecard-gateway/
    55 * Description: Extends WooCommerce with Pelecard payment gateway.
    6  * Version: 1.4.4
     6 * Version: 1.4.5
    77 * Author: Ido Friedlander
    88 * Author URI: https://profiles.wordpress.org/idofri/
Note: See TracChangeset for help on using the changeset viewer.