From e6e199ebc2ee9c360e94c066b801e9088df7ef29 Mon Sep 17 00:00:00 2001 From: GuilhermeLinkNacional Date: Fri, 13 Sep 2024 15:38:23 -0300 Subject: [PATCH 1/4] =?UTF-8?q?feat:=20Adi=C3=A7=C3=A3o=20de=20link=20para?= =?UTF-8?q?=20redirecionar=20para=20p=C3=A1gina=20de=20logs=20#9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Admin/LknPaymentEredeForGivewpAdmin.php | 10 ++++++++-- languages/payment-erede-for-givewp-pt_BR.mo | Bin 3822 -> 3850 bytes languages/payment-erede-for-givewp-pt_BR.po | 4 ++-- languages/payment-erede-for-givewp.pot | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Admin/LknPaymentEredeForGivewpAdmin.php b/Admin/LknPaymentEredeForGivewpAdmin.php index c987e38..66ead45 100755 --- a/Admin/LknPaymentEredeForGivewpAdmin.php +++ b/Admin/LknPaymentEredeForGivewpAdmin.php @@ -223,7 +223,10 @@ public function add_settings_into_section($settings) :array { $settings[] = array( 'name' => __('Debug mode', PAYMENT_EREDE_FOR_GIVEWP_TEXT_DOMAIN), 'id' => 'lkn_erede_credit_debug_setting_field', - 'desc' => __('Saves transaction logs for testing purposes.', PAYMENT_EREDE_FOR_GIVEWP_TEXT_DOMAIN), + 'desc' => sprintf( + __( 'Saves transaction logs for testing purposes. %sSee logs.%s', PAYMENT_EREDE_FOR_GIVEWP_TEXT_DOMAIN), + '', '' + ), 'type' => 'radio', 'default' => 'disabled', 'options' => array( @@ -310,7 +313,10 @@ public function add_settings_into_section($settings) :array { $settings[] = array( 'name' => __('Debug mode', PAYMENT_EREDE_FOR_GIVEWP_TEXT_DOMAIN), 'id' => 'lkn_erede_debit_3ds_debug_setting_field', - 'desc' => __('Saves transaction logs for testing purposes.', PAYMENT_EREDE_FOR_GIVEWP_TEXT_DOMAIN), + 'desc' => sprintf( + __( 'Saves transaction logs for testing purposes. %sSee logs.%s', PAYMENT_EREDE_FOR_GIVEWP_TEXT_DOMAIN), + '', '' + ), 'type' => 'radio', 'default' => 'disabled', 'options' => array( diff --git a/languages/payment-erede-for-givewp-pt_BR.mo b/languages/payment-erede-for-givewp-pt_BR.mo index 6da6e79eef76c03442f788b346c8aed83a78da8c..a930e76535a0181555b7c92e4cc8790595afdbcd 100755 GIT binary patch delta 447 zcmXxg%_~Gv7{~G7ooO^KbG?(7(G`=IjKYwZtSqc%LCJ=qZW2=WmW{>T%kD1x1(cPS z$->G)7IsKVl8q%+CR^WQayp&QInQ~2zS4W0r#UN}l(dnQs5+ua;0e~?1-9S~w&E-1 z@dq0)S1GOIEEez_&Aero=cjRp@f=p;EwWWl*obeoLUqvjCeV&`Rg#NY?8X9)ppOH1 zh%D6|*5V8H;|F$OGq()l1TLY6O?ZuF-!o?L9f#3Qh0++Ed`enIA7glrEpxDp>vIBq7G b_dIuVdo38s1jU17=`Xh6`TwzK-&y?yB8@lU delta 417 zcmXBQKP*F06vy%3>&ug;`bVgU(yI6uO)K@UgBT1ZgS8Vvx`^Fkc)P^(1{OopN{y8U zgN;NaBGScZBo>R<48A9BZtmyip8M~dqwH6vwde!|N&CJ;*C~UCHB4d?2k{1n@C8@! z6Z>(hTiU~A+`tA}{2MJ^ib@B#hB3TFj_MIp*oi982$OdfhSBYjayW|PxQg>w#XO!M zTXl!M_>437hGXdSiY1iCO|0MmUZI_P!byC^IsAy@ft1R4qEF9FC&MJ!lJw2Otg30ve!QMf4uM_ GvHJ(i^)43x diff --git a/languages/payment-erede-for-givewp-pt_BR.po b/languages/payment-erede-for-givewp-pt_BR.po index 7b1a92f..0f4a73c 100755 --- a/languages/payment-erede-for-givewp-pt_BR.po +++ b/languages/payment-erede-for-givewp-pt_BR.po @@ -65,8 +65,8 @@ msgstr "Desabilitado" msgid "Debug mode" msgstr "Modo de depuração" -msgid "Saves transaction logs for testing purposes." -msgstr "Salva logs da transação para fins de teste." +msgid "Saves transaction logs for testing purposes. %sSee logs.%s" +msgstr "Salva logs da transação para fins de teste. %sVer logs.%s" msgid "Donation" msgstr "Doação" diff --git a/languages/payment-erede-for-givewp.pot b/languages/payment-erede-for-givewp.pot index e6664d6..8845909 100755 --- a/languages/payment-erede-for-givewp.pot +++ b/languages/payment-erede-for-givewp.pot @@ -65,7 +65,7 @@ msgstr "" msgid "Debug mode" msgstr "" -msgid "Saves transaction logs for testing purposes." +msgid "Saves transaction logs for testing purposes. %sSee logs.%s" msgstr "" msgid "Donation" From 806edcb479e4b6ba2d1f3250d9a2a59b032a9ad5 Mon Sep 17 00:00:00 2001 From: GuilhermeLinkNacional Date: Wed, 18 Sep 2024 14:14:25 -0300 Subject: [PATCH 2/4] =?UTF-8?q?fix:=20Corre=C3=A7=C3=A3o=20em=20script=20n?= =?UTF-8?q?o=20formul=C3=A1rio=20legado=20#12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LknPaymentEredeForGivewpCreditGateway.php | 50 ++++++++++--------- .../LknPaymentEredeForGivewpDebitGateway.php | 50 ++++++++++--------- 2 files changed, 54 insertions(+), 46 deletions(-) diff --git a/Public/LknPaymentEredeForGivewpCreditGateway.php b/Public/LknPaymentEredeForGivewpCreditGateway.php index 162cadb..3f1a201 100755 --- a/Public/LknPaymentEredeForGivewpCreditGateway.php +++ b/Public/LknPaymentEredeForGivewpCreditGateway.php @@ -320,29 +320,33 @@ final public static function credit_card_form($form_id, $args) { diff --git a/Public/LknPaymentEredeForGivewpDebitGateway.php b/Public/LknPaymentEredeForGivewpDebitGateway.php index 9e9520a..0009775 100755 --- a/Public/LknPaymentEredeForGivewpDebitGateway.php +++ b/Public/LknPaymentEredeForGivewpDebitGateway.php @@ -296,29 +296,33 @@ final public static function debit_card_form($form_id, $args) { From 57343955067c47891adddf54e57befc29c2b5c94 Mon Sep 17 00:00:00 2001 From: GuilhermeLinkNacional Date: Thu, 10 Oct 2024 14:10:11 -0300 Subject: [PATCH 3/4] =?UTF-8?q?fix:=20Corre=C3=A7=C3=A3o=20em=20erro=20fat?= =?UTF-8?q?al?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Public/LknPaymentEredeForGivewpCreditGateway.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Public/LknPaymentEredeForGivewpCreditGateway.php b/Public/LknPaymentEredeForGivewpCreditGateway.php index 3f1a201..689ab50 100755 --- a/Public/LknPaymentEredeForGivewpCreditGateway.php +++ b/Public/LknPaymentEredeForGivewpCreditGateway.php @@ -182,7 +182,7 @@ public function createPayment(Donation $donation, $gatewayData): GatewayCommand LknPaymentEredeForGivewpHelper::log('[Raw body 1]: ' . var_export(($body), true), $logname); } - $body = apply_filters('lkn_erede_credit_body', $body, $currencyCode, $donation); + $body = apply_filters('lkn_erede_credit_body', $body, $currencyCode); $response = wp_remote_post($configs['api_url'], array( 'headers' => $headers, From 641e5c0863f1b59a0aa420dc4bb06f2c98ee8c2e Mon Sep 17 00:00:00 2001 From: GuilhermeLinkNacional Date: Thu, 10 Oct 2024 14:24:45 -0300 Subject: [PATCH 4/4] =?UTF-8?q?docs:=20Atualizando=20vers=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 2 +- CHANGELOG.md | 4 ++++ README.txt | 6 +++++- payment-erede-for-givewp.php | 4 ++-- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d0c4d60..3782858 100755 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,7 +47,7 @@ jobs: uses: mathieudutour/github-tag-action@v6.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} - custom_tag: '2.0.0' # // TODO caso necessário definir a tag da release manualmente + custom_tag: '2.0.1' # // TODO caso necessário definir a tag da release manualmente # Generate new release - name: Generate new Release diff --git a/CHANGELOG.md b/CHANGELOG.md index efefbe6..7a42593 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 2.0.1 - 10/10/2024 +* Add link to view logs; +* Fix donation status; + # 2.0.0 - 14/05/2024 * Added compatibility with GiveWP 3.0.0 template. * General plugin optimizations. diff --git a/README.txt b/README.txt index 9e1c627..0a16637 100755 --- a/README.txt +++ b/README.txt @@ -5,7 +5,7 @@ Tags: payment, donation, credit, debit, card Requires at least: 5.7 Requires PHP: 7.4 Tested up to: 6.6 -Stable tag: 2.0.0 +Stable tag: 2.0.1 License: GPLv3 or later License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -65,6 +65,10 @@ To get your E-Rede production credentials you will need to follow [this guide](h 1. None == Changelog == += 2.0.1 = +**10/10/2024** +* Add link to view logs; +* Fix donation status; = 2.0.0 = **14/05/2024** diff --git a/payment-erede-for-givewp.php b/payment-erede-for-givewp.php index ff99132..4d10ff3 100755 --- a/payment-erede-for-givewp.php +++ b/payment-erede-for-givewp.php @@ -20,7 +20,7 @@ * Plugin Name: Payment Gateway E-Rede for GiveWP * Plugin URI: https://www.linknacional.com.br/wordpress/plugins/ * Description: Credit and debit card payment using E-Rede - * Version: 2.0.0 + * Version: 2.0.1 * Author: Link Nacional * Author URI: https://www.linknacional.com.br/wordpress/plugins/ * License: GPL-3.0+ @@ -41,7 +41,7 @@ * Start at version 1.0.0 and use SemVer - https://semver.org * Rename this for your plugin and update it as you release new versions. */ -define( 'PAYMENT_EREDE_FOR_GIVEWP_VERSION', '2.0.0' ); +define( 'PAYMENT_EREDE_FOR_GIVEWP_VERSION', '2.0.1' ); define( 'PAYMENT_EREDE_FOR_GIVEWP_MIN_GIVE_VERSION', '2.31.0' );