Plugin Directory

Changeset 2261594


Ignore:
Timestamp:
03/16/2020 08:09:51 AM (6 years ago)
Author:
udjin
Message:

fixed a bug to pay via Privat24

Location:
platon-pay-woocommerce/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • platon-pay-woocommerce/trunk/readme.txt

    r2159346 r2261594  
    7070* This version fixes a security related bug.
    7171* Added ability to pay via Privat24.
    72 
     72= 1.6.1 =
     73* This version fixes a Privat24 bug.
    7374
    7475== Upgrade Notice ==
     
    7677= 1.6 =
    7778* In this version has been fixed a bug with security and added ability to pay via Privat24.
     79= 1.6.1 =
     80* In this version has been fixed a bug to pay via Privat24.
  • platon-pay-woocommerce/trunk/wc-platononline.php

    r2224290 r2261594  
    44* Description: «Platon Pay WooCommerce» is perfect for both online stores operating on the WooCommerce platform.
    55* Author: udjin
    6 * Version: 1.6
     6* Version: 1.6.1
    77* Requires at least: 4.7
    88* Requires PHP: 5.2
     
    246246                        $email = sanitize_email(isset($_REQUEST['email']) ? $_REQUEST['email'] : '');
    247247                        $self_md5 = md5(strtoupper(strrev($email).$this->password.$order_id.strrev(substr($card,0,6).substr($card,-4))));
    248                         if ($status == 'SALE' && $self_md5 == $sign) {
     248                        $self_md5_P24 = md5(strtoupper($this->password . $order_id ));
     249                        if ($status == 'SALE' && $self_md5 == $sign || $status == 'SALE' && $self_md5_P24 == $sign) {
    249250                            $order->update_status('completed', __('Платеж успешно оплачен', 'woocommerce'));
    250251                        }
Note: See TracChangeset for help on using the changeset viewer.