Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.9.2 - Correção de bug no campo nome do titular do cartão #63

Merged
merged 3 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: "1.9.1"
custom_tag: "1.9.2"

# Generate new release
- name: Generate new Release
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 4 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions lkn-wc-gateway-cielo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/');
Expand Down
1 change: 1 addition & 0 deletions resources/js/creditCard/lknCieloCredit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions resources/js/creditCard/lknCieloCredit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion resources/js/debitCard/lknCieloDebit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: ''
Expand Down Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion resources/js/debitCard/lknCieloDebit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: '',
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions resources/js/frontend/lkn-dc-script-sdb.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -93,7 +93,7 @@ function bpmpi_config () {
btnSubmit.setAttribute('type', 'submit')
btnSubmit.click()
} else {
formCheckoutWC.submit()
Button3ds.click()
}
},
onFailure: function (e) {
Expand Down
Loading