Plugin Directory

Changeset 2421485


Ignore:
Timestamp:
11/19/2020 12:34:32 PM (5 years ago)
Author:
appmaxplataforma
Message:

Ajustando regra de atualização de status ao retornar webhook.

Location:
appmax-woocommerce/trunk
Files:
3 edited

Legend:

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

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

    r2413916 r2421485  
    7979            $this->awc_add_log( $log_content );
    8080
     81            $status = AWC_Order_Status::AWC_PROCESSING;
     82
    8183            if ($this->data['status'] == AWC_Status_Appmax::AWC_AUTHORIZED) {
    82 
    83                 $status = AWC_Order_Status::AWC_PROCESSING;
    8484
    8585                if ($this->awc_get_gateway()['awc_order_authorized'] == AWC_Order_Status::AWC_ON_HOLD) {
     
    9191
    9292            if ($this->data['status'] == AWC_Status_Appmax::AWC_APPROVED) {
    93                 $status = AWC_Order_Status::AWC_COMPLETED;
    94 
    9593                $this->order->update_status( $status );
    9694            }
  • appmax-woocommerce/trunk/readme.txt

    r2413916 r2421485  
    44Requires at least: 4.0
    55Tested up to: 5.1
    6 Stable tag: 2.0.30
     6Stable tag: 2.0.31
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    117117== Changelog ==
    118118
     119= 2.0.31 =
     120
     121* Ajustando regra de atualização de status ao retornar webhook.
     122
    119123= 2.0.30 =
    120124
Note: See TracChangeset for help on using the changeset viewer.