Plugin Directory

Changeset 2533270


Ignore:
Timestamp:
05/17/2021 09:07:53 PM (5 years ago)
Author:
appmaxplataforma
Message:

Correção na validação do retorno de acesso ao servidor.

Location:
appmax-woocommerce/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • appmax-woocommerce/trunk/appmax-woocommerce.php

    r2533054 r2533270  
    33 * Plugin Name: AppMax WooCommerce
    44 * Description: Gateway de pagamento AppMax para WooCommerce.
    5  * Version: 2.0.38
     5 * Version: 2.0.39
    66 * License: GPLv2 or later
    77 * Author: AppMax Plataforma de Vendas Ltda
     
    2424    class AppMax_WC
    2525    {
    26         const VERSION = '2.0.38';
     26        const VERSION = '2.0.39';
    2727
    2828        /**
  • appmax-woocommerce/trunk/includes/class-awc-process-payment.php

    r2533054 r2533270  
    257257        $log_content = "";
    258258
    259         if (array_key_exists('cf-ray', $data) && $data['server'] == 'cloudflare') {
     259        if (array_key_exists('cf-ray', $data) && $data['server'] == 'cloudflare' && $response['response']['code'] != 200) {
    260260            $log_content .= sprintf( "%s", AWC_Errors_Api::AWC_MESSAGE_001 ) . PHP_EOL;
    261261            $log_content .= sprintf( "%s - %s (Cloudflare)", $response['response']['code'], $response['response']['message'] ) . PHP_EOL;
     
    266266        }
    267267
    268         if ($data['server'] == 'nginx') {
     268        if ($data['server'] == 'nginx' && $response['response']['code'] != 200) {
    269269            $log_content .= sprintf( "%s", AWC_Errors_Api::AWC_MESSAGE_002 ) . PHP_EOL;
    270270            $log_content .= sprintf( "%s - %s (Nginx)", $response['response']['code'], $response['response']['message'] ) . PHP_EOL;
  • appmax-woocommerce/trunk/readme.txt

    r2533054 r2533270  
    44Requires at least: 4.0
    55Tested up to: 5.1
    6 Stable tag: 2.0.38
     6Stable tag: 2.0.39
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    117117== Changelog ==
    118118
     119= 2.0.39 =
     120
     121* Correção na validação do retorno de acesso ao servidor.
     122
    119123= 2.0.38 =
    120124
Note: See TracChangeset for help on using the changeset viewer.