From 090b78f8e370e0ca91396e126deca1ffcea1420a Mon Sep 17 00:00:00 2001 From: GuilhermeLinkNacional Date: Tue, 4 Jun 2024 16:30:25 -0300 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20Corre=C3=A7=C3=A3o=20de=20erro=20de?= =?UTF-8?q?=20valida=C3=A7=C3=A3o=20do=20campo=20de=20nome=20do=20titular?= =?UTF-8?q?=20do=20cart=C3=A3o=20#61?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/js/creditCard/lknCieloCredit.js | 1 + resources/js/creditCard/lknCieloCredit.tsx | 1 + resources/js/debitCard/lknCieloDebit.js | 3 ++- resources/js/debitCard/lknCieloDebit.tsx | 3 ++- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/js/creditCard/lknCieloCredit.js b/resources/js/creditCard/lknCieloCredit.js index f7e2c4d..12ef527 100755 --- a/resources/js/creditCard/lknCieloCredit.js +++ b/resources/js/creditCard/lknCieloCredit.js @@ -109,6 +109,7 @@ const Content_cieloCredit = props => { meta: { paymentMethodData: { lkn_ccno: creditObject.lkn_ccno, + lkn_cc_cardholder_name: creditObject.lkn_cc_cardholder_name, lkn_cc_expdate: creditObject.lkn_cc_expdate, lkn_cc_cvc: creditObject.lkn_cc_cvc, lkn_cc_installments: creditObject.lkn_cc_installments, diff --git a/resources/js/creditCard/lknCieloCredit.tsx b/resources/js/creditCard/lknCieloCredit.tsx index a0bdda8..8d841ad 100755 --- a/resources/js/creditCard/lknCieloCredit.tsx +++ b/resources/js/creditCard/lknCieloCredit.tsx @@ -117,6 +117,7 @@ const Content_cieloCredit = (props) => { meta: { paymentMethodData: { lkn_ccno: creditObject.lkn_ccno, + lkn_cc_cardholder_name: creditObject.lkn_cc_cardholder_name, lkn_cc_expdate: creditObject.lkn_cc_expdate, lkn_cc_cvc: creditObject.lkn_cc_cvc, lkn_cc_installments: creditObject.lkn_cc_installments, diff --git a/resources/js/debitCard/lknCieloDebit.js b/resources/js/debitCard/lknCieloDebit.js index 8028bf1..8643585 100755 --- a/resources/js/debitCard/lknCieloDebit.js +++ b/resources/js/debitCard/lknCieloDebit.js @@ -18,7 +18,7 @@ const Content_cieloDebit = props => { onPaymentSetup } = eventRegistration const [debitObject, setdebitObject] = window.wp.element.useState({ - lkn_cc_cardholder_name: '', + lkn_dc_cardholder_name: '', lkn_dcno: '', lkn_dc_expdate: '', lkn_dc_cvc: '' @@ -150,6 +150,7 @@ const Content_cieloDebit = props => { meta: { paymentMethodData: { lkn_dcno: debitObject.lkn_dcno, + lkn_dc_cardholder_name: debitObject.lkn_dc_cardholder_name, lkn_dc_expdate: debitObject.lkn_dc_expdate, lkn_dc_cvc: debitObject.lkn_dc_cvc, nonce_lkn_cielo_debit: nonceCieloDebit, diff --git a/resources/js/debitCard/lknCieloDebit.tsx b/resources/js/debitCard/lknCieloDebit.tsx index 9d2590c..5b8b2b5 100755 --- a/resources/js/debitCard/lknCieloDebit.tsx +++ b/resources/js/debitCard/lknCieloDebit.tsx @@ -15,7 +15,7 @@ const Content_cieloDebit = (props) => { const { onPaymentSetup } = eventRegistration const [debitObject, setdebitObject] = window.wp.element.useState({ - lkn_cc_cardholder_name: '', + lkn_dc_cardholder_name: '', lkn_dcno: '', lkn_dc_expdate: '', lkn_dc_cvc: '', @@ -165,6 +165,7 @@ const Content_cieloDebit = (props) => { meta: { paymentMethodData: { lkn_dcno: debitObject.lkn_dcno, + lkn_dc_cardholder_name: debitObject.lkn_dc_cardholder_name, lkn_dc_expdate: debitObject.lkn_dc_expdate, lkn_dc_cvc: debitObject.lkn_dc_cvc, nonce_lkn_cielo_debit: nonceCieloDebit, From 1d0a063bc5b5c78d9acf685ef978af0cadc52344 Mon Sep 17 00:00:00 2001 From: helonfranca02 <160531655+helonfranca02@users.noreply.github.com> Date: Wed, 5 Jun 2024 13:54:03 -0300 Subject: [PATCH 2/3] =?UTF-8?q?fix:=20corre=C3=A7=C3=A3o=20de=20erro=20no?= =?UTF-8?q?=20formul=C3=A1rio=20editor=20por=20blocos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/js/frontend/lkn-dc-script-sdb.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/js/frontend/lkn-dc-script-sdb.js b/resources/js/frontend/lkn-dc-script-sdb.js index dc5a73c..f712b59 100755 --- a/resources/js/frontend/lkn-dc-script-sdb.js +++ b/resources/js/frontend/lkn-dc-script-sdb.js @@ -84,7 +84,7 @@ function bpmpi_config () { document.getElementById('lkn_version').value = version document.getElementById('lkn_xid').value = xid - const formCheckoutWC = document.getElementById('order_review') + const Button3ds = document.querySelectorAll('.wc-block-components-checkout-place-order-button')[0] const formCartWC = document.getElementsByName('checkout')[0] if (formCartWC) { @@ -93,7 +93,7 @@ function bpmpi_config () { btnSubmit.setAttribute('type', 'submit') btnSubmit.click() } else { - formCheckoutWC.submit() + Button3ds.click() } }, onFailure: function (e) { From 8663bde16693599629cfbc37a0149fd02167413e Mon Sep 17 00:00:00 2001 From: helonfranca02 <160531655+helonfranca02@users.noreply.github.com> Date: Wed, 5 Jun 2024 14:12:39 -0300 Subject: [PATCH 3/3] =?UTF-8?q?docs:=20atualizando=20a=20vers=C3=A3o=20do?= =?UTF-8?q?=20plugin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 2 +- CHANGELOG.md | 3 +++ README.txt | 4 ++++ lkn-wc-gateway-cielo.php | 4 ++-- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 805b9ee..6a5f436 100755 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,7 +46,7 @@ jobs: uses: mathieudutour/github-tag-action@v6.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} - custom_tag: "1.9.1" + custom_tag: "1.9.2" # Generate new release - name: Generate new Release diff --git a/CHANGELOG.md b/CHANGELOG.md index 5fb5a31..fc56231 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 1.9.2 - 05/06/2024 +* Correção de validação no campo nome do titular do cartão; + # 1.9.1 - 23/05/2024 * Correção de erro no campo de titular do cartão; * Correção de erro na validação dos campos do novo template de checkout; diff --git a/README.txt b/README.txt index 95b4594..b85990a 100755 --- a/README.txt +++ b/README.txt @@ -72,6 +72,10 @@ Payment Gateway for Cielo API on WooCommerce plugin is dependent on WooCommerce == Changelog == += 1.9.2 = +**05/06/2024** +* Correction of validation in the cardholder name field; + = 1.9.1 = **23/05/2024** * Correction of error in the cardholder field; diff --git a/lkn-wc-gateway-cielo.php b/lkn-wc-gateway-cielo.php index 5eec331..78a728f 100755 --- a/lkn-wc-gateway-cielo.php +++ b/lkn-wc-gateway-cielo.php @@ -4,7 +4,7 @@ * Plugin URI: https://www.linknacional.com.br/wordpress/woocommerce/cielo/ * Description: Adds the Cielo API 3.0 Payments gateway to your WooCommerce website. * - * Version: 1.9.1 + * Version: 1.9.2 * * Author: Link Nacional * Author URI: https://linknacional.com.br @@ -308,7 +308,7 @@ public static function email_order_meta_fields($fields, $sent_to_admin, $order) private static function setup_constants(): void { // Defines addon version number for easy reference. if ( ! defined('LKN_WC_CIELO_VERSION')) { - define('LKN_WC_CIELO_VERSION', '1.9.1'); + define('LKN_WC_CIELO_VERSION', '1.9.2'); } if ( ! defined('LKN_WC_CIELO_TRANSLATION_PATH')) { define('LKN_WC_CIELO_TRANSLATION_PATH', plugin_dir_path(__FILE__) . 'languages/');