Skip to content

Commit

Permalink
Merge pull request #48 from LinkNacional/dev
Browse files Browse the repository at this point in the history
1.8.0 Correções de bugs e adição de compatibilidade com block-based checkout
  • Loading branch information
emanuellopess authored May 15, 2024
2 parents c904918 + 38f7551 commit 36693b7
Show file tree
Hide file tree
Showing 20 changed files with 3,448 additions and 130 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,18 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Run composer install
uses: php-actions/composer@v6
with:
php_version: ${{ env.PHP_VERSION }}
working_dir: "."
args: --ignore-platform-reqs
command: install
dev: no

# Add plugin files to a root directory
- name: Make plugin root directory
run: "mkdir $PLUGIN_NAME && mv -t ./$PLUGIN_NAME ./languages ./resources ./includes *.txt *.php && find ./${{env.PLUGIN_NAME}} -type f -exec chmod 0644 {} + && find ./${{env.PLUGIN_NAME}} -type d -exec chmod 0755 {} + && ls -lah"
run: "mkdir $PLUGIN_NAME && mv -t ./$PLUGIN_NAME ./languages ./resources ./includes ./vendor *.txt *.php && find ./${{env.PLUGIN_NAME}} -type f -exec chmod 0644 {} + && find ./${{env.PLUGIN_NAME}} -type d -exec chmod 0755 {} + && ls -lah"

# Compact plugin as .zip
- name: Archive Release
Expand All @@ -36,7 +45,7 @@ jobs:
uses: mathieudutour/github-tag-action@v6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: "1.7.0"
custom_tag: "1.8.0"

# Generate new release
- name: Generate new Release
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/.devcontainer/devcontainer.json
node_modules
sftp.json
vendor
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 1.8.0 - 10/05/2024
* Adição de compatibilidade com block-based checkout;
* Adição de banner de hospedagem para Wordpress;
* Adição de campos obrigatórios para as credenciais de cartão de crédito e débito;
* Melhoria nos tratamentos de erros;

# 1.7.0 - 25/03/2024
* Correção de bug de carregamento de script do 3DS na opção cartão de débito;
* Adição de lógica para lidar com respostas da API quando o código de retorno é "GF";
Expand Down
9 changes: 8 additions & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://www.linknacional.com.br/wordpress/woocommerce/cielo/
Tags: woocommerce, payment, paymethod, card, credit
Requires at least: 5.7
Tested up to: 6.5
Stable tag: 1.7.0
Stable tag: 1.8.0
Requires PHP: 7.2
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -72,6 +72,13 @@ Payment Gateway for Cielo API on WooCommerce plugin is dependent on WooCommerce

== Changelog ==

= 1.8.0 =
**10/05/2024**
* Added support for block-based checkout;
* Addition of hosting banner for Wordpress;
* Addition of mandatory fields for credit and debit card credentials;
* Improvement in error handling;

= 1.7.0 =
**25/03/2024**
* Fixed 3DS script loading bug in the debit card option;
Expand Down
21 changes: 21 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "lkn/wc-gateway-cielo",
"type": "project",
"license": "Proprietary",
"autoload": {
"psr-4": {
"Lkn\\WCCieloPaymentGateway\\Includes\\": "includes/"
}
},
"authors": [
{
"name": "Link Nacional",
"email": "ticket@linknacional.com"
}
],
"minimum-stability": "stable",
"require-dev": {
"phan/phan": "5.4.1"
},
"require": {}
}
Loading

0 comments on commit 36693b7

Please sign in to comment.