Skip to content

Commit

Permalink
Merge branch 'master' into fix/disable_wcs_auto_renewal_hook
Browse files Browse the repository at this point in the history
  • Loading branch information
laerte-guimaraes authored Aug 27, 2022
2 parents a0fed93 + 8071276 commit 86237ed
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 17 deletions.
Binary file modified assets/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 8 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ Tags: vindi, subscriptions, pagamento-recorrente, cobranca-recorrente, cobrança
Author URI: https://vindi.com.br/ | https://mentores.com.br
Author: Vindi | Mentores Digital
Requires at least: 4.4
Tested up to: 5.8.1
Tested up to: 6.0
WC requires at least: 3.0.0
WC tested up to: 5.7.0
WC tested up to: 6.5.1
Requires PHP: 5.6
Stable Tag: 1.1.11
Stable Tag: 1.1.12
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -39,6 +39,11 @@ Para dúvidas e suporte técnico, entre em contato com a equipe Vindi através d
5. Configurações de pagamentos via cartão de crédito

== Changelog ==
= 1.1.12 - 08/06/2022 =
-Lançamento da versão de patch.
- **Correção**: Foi removido o envio da descrição do produto para a plataforma Vindi para evitar possíveis erros no cadastro de produtos.


= 1.1.11 - 07/12/2021 =
-Lançamento da versão de patch.
- **Correção**: Foi corrigida a versão da dependência WooCommerce Subscriptions, necessária para funcionamento do plugin.
Expand Down
8 changes: 0 additions & 8 deletions src/controllers/PlansController.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ function create($post_id, $post, $update, $recreated = false)
'name' => VINDI_PREFIX_PRODUCT . $data['name'],
'code' => 'WC-' . $data['id'],
'status' => ($data['status'] == 'publish') ? 'active' : 'inactive',
'description' => $data['description'],
'invoice' => 'always',
'pricing_schema' => array(
'price' => ($data['price']) ? $data['price'] : 0,
Expand All @@ -114,7 +113,6 @@ function create($post_id, $post, $update, $recreated = false)
'billing_trigger_day' => $trigger_day,
'billing_cycles' => ($product->get_meta('_subscription_length') == 0) ? null : $product->get_meta('_subscription_length'),
'code' => 'WC-' . $data['id'],
'description' => $data['description'],
'installments' => 1,
'status' => ($data['status'] == 'publish') ? 'active' : 'inactive',
'plan_items' => array(
Expand Down Expand Up @@ -164,7 +162,6 @@ function create($post_id, $post, $update, $recreated = false)
'name' => VINDI_PREFIX_PRODUCT . $data['name'],
'code' => 'WC-' . $data['id'],
'status' => ($data['status'] == 'publish') ? 'active' : 'inactive',
'description' => $data['description'],
'invoice' => 'always',
'pricing_schema' => array(
'price' => ($data['price']) ? $data['price'] : 0,
Expand All @@ -182,7 +179,6 @@ function create($post_id, $post, $update, $recreated = false)
'billing_trigger_day' => $trigger_day,
'billing_cycles' => ($product->get_meta('_subscription_length') == 0) ? null : $product->get_meta('_subscription_length'),
'code' => 'WC-' . $data['id'],
'description' => $data['description'],
'installments' => 1,
'status' => ($data['status'] == 'publish') ? 'active' : 'inactive',
'plan_items' => array(
Expand Down Expand Up @@ -277,7 +273,6 @@ function update($post_id)
'name' => VINDI_PREFIX_PRODUCT . $data['name'],
'code' => 'WC-' . $data['id'],
'status' => ($data['status'] == 'publish') ? 'active' : 'inactive',
'description' => $data['description'],
'invoice' => 'always',
'pricing_schema' => array(
'price' => ($data['price']) ? $data['price'] : 0,
Expand All @@ -297,7 +292,6 @@ function update($post_id)
'billing_trigger_day' => $trigger_day,
'billing_cycles' => ($product->get_meta('_subscription_length') == 0) ? null : $product->get_meta('_subscription_length'),
'code' => 'WC-' . $data['id'],
'description' => $data['description'],
'installments' => 1,
'status' => ($data['status'] == 'publish') ? 'active' : 'inactive',
)
Expand Down Expand Up @@ -340,7 +334,6 @@ function update($post_id)
'name' => VINDI_PREFIX_PRODUCT . $data['name'],
'code' => 'WC-' . $data['id'],
'status' => ($data['status'] == 'publish') ? 'active' : 'inactive',
'description' => $data['description'],
'invoice' => 'always',
'pricing_schema' => array(
'price' => ($data['price']) ? $data['price'] : 0,
Expand All @@ -362,7 +355,6 @@ function update($post_id)
'billing_trigger_day' => $trigger_day,
'billing_cycles' => ($product->get_meta('_subscription_length') == 0) ? null : $product->get_meta('_subscription_length'),
'code' => 'WC-' . $data['id'],
'description' => $data['description'],
'installments' => 1,
'status' => ($data['status'] == 'publish') ? 'active' : 'inactive',
)
Expand Down
2 changes: 0 additions & 2 deletions src/controllers/ProductController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ function create($post_id, $post, $update, $recreated = false)
'name' => VINDI_PREFIX_PRODUCT . $data['name'],
'code' => 'WC-' . $data['id'],
'status' => ($data['status'] == 'publish') ? 'active' : 'inactive',
'description' => $data['description'],
'invoice' => 'always',
'pricing_schema' => array(
'price' => ($data['price']) ? $data['price'] : 0,
Expand Down Expand Up @@ -123,7 +122,6 @@ function update($post_id)
'name' => VINDI_PREFIX_PRODUCT . $data['name'],
'code' => 'WC-' . $data['id'],
'status' => ($data['status'] == 'publish') ? 'active' : 'inactive',
'description' => $data['description'],
'invoice' => 'always',
'pricing_schema' => array(
'price' => ($data['price']) ? $data['price'] : 0,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/DefinitionVariables.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

define('VINDI_VERSION', '1.1.11');
define('VINDI_VERSION', '1.1.12');

define('VINDI_MININUM_WP_VERSION', '5.0');
define('VINDI_MININUM_PHP_VERSION', '5.6');
Expand Down
6 changes: 3 additions & 3 deletions vindi.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
* Description: Adiciona o gateway de pagamento da Vindi para o WooCommerce.
* Author: Vindi
* Author URI: https://www.vindi.com.br
* Version: 1.1.11
* Version: 1.1.12
* Requires at least: 4.4
* Tested up to: 5.8.1
* Tested up to: 6.0
* WC requires at least: 3.0.0
* WC tested up to: 5.7.0
* WC tested up to: 6.5.1
* Text Domain: vindi-payment-gateway
*
* Domain Path: ./src/languages/
Expand Down

0 comments on commit 86237ed

Please sign in to comment.