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

Remoção da Transferência Bancária #76

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
25 changes: 0 additions & 25 deletions assets/images/itau-flag.svg

This file was deleted.

2 changes: 1 addition & 1 deletion class-wc-yapay_intermediador-bankslip-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public function process_payment($order_id)

$params["token_account"] = $this->get_option("token_account");
$params["finger_print"] = $_POST["finger_print"];
$params['transaction[free]'] = "WOOCOMMERCE_INTERMEDIADOR_v0.7.8";
$params['transaction[free]'] = "WOOCOMMERCE_INTERMEDIADOR_v0.7.9";
$params["customer[name]"] = $_POST["billing_first_name"] . " " . $_POST["billing_last_name"];
$params["customer[cpf]"] = $_POST["billing_cpf"];

Expand Down
2 changes: 1 addition & 1 deletion class-wc-yapay_intermediador-bolepix-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public function process_payment( $order_id ) {

$params["token_account"] = $this->get_option("token_account");
$params["finger_print"] = $_POST["finger_print"];
$params['transaction[free]']= "WOOCOMMERCE_INTERMEDIADOR_v0.7.8";
$params['transaction[free]']= "WOOCOMMERCE_INTERMEDIADOR_v0.7.9";
$params["customer[name]"] = substr($_POST["billing_first_name"] . " " . $_POST["billing_last_name"], 0 , 50);
$params["customer[cpf]"] = $_POST["billing_cpf"];

Expand Down
2 changes: 1 addition & 1 deletion class-wc-yapay_intermediador-creditcard-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public function process_payment($order_id)

$params["token_account"] = $this->get_option("token_account");
$params["finger_print"] = $_POST["finger_print"];
$params['transaction[free]'] = "WOOCOMMERCE_INTERMEDIADOR_v0.7.8";
$params['transaction[free]'] = "WOOCOMMERCE_INTERMEDIADOR_v0.7.9";
$params["customer[name]"] = $_POST["billing_first_name"] . " " . $_POST["billing_last_name"];
$params["customer[cpf]"] = $_POST["billing_cpf"];

Expand Down
2 changes: 1 addition & 1 deletion class-wc-yapay_intermediador-pix-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public function process_payment( $order_id ) {

$params["token_account"] = $this->get_option("token_account");
$params["finger_print"] = $_POST["finger_print"];
$params['transaction[free]']= "WOOCOMMERCE_INTERMEDIADOR_v0.7.8";
$params['transaction[free]']= "WOOCOMMERCE_INTERMEDIADOR_v0.7.9";
$params["customer[name]"] = $_POST["billing_first_name"] . " " . $_POST["billing_last_name"];
$params["customer[cpf]"] = $_POST["billing_cpf"];

Expand Down
6 changes: 2 additions & 4 deletions class-wc-yapay_intermediador-tef-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ public function init_form_fields() {
add_thickbox();
$payment_methods = array();

$payment_methods["7"] = "Itaú Shopline (Transferência)";
$payment_methods["14"] = "Peela";
$payment_methods["21"] = "Transf. Online HSBC";
$payment_methods["22"] = "Transf. Online Bradesco";
Expand Down Expand Up @@ -121,7 +120,7 @@ public function init_form_fields() {
'type' => 'multiselect',
'class' => 'wc-enhanced-select',
'css' => 'width: 450px;',
'default' => array("7","14","21","22","23"),
'default' => array("14","21","22","23"),
'description' => __( 'Selecione todos os meios de pagamento disponíveis na loja.', 'wc-yapay_intermediador-tef' ),
'options' => $payment_methods,
'desc_tip' => true,
Expand Down Expand Up @@ -205,7 +204,7 @@ public function process_payment( $order_id ) {

$params["token_account"] = $this->get_option("token_account");
$params["finger_print"] = $_POST["finger_print"];
$params['transaction[free]']= "WOOCOMMERCE_INTERMEDIADOR_v0.7.8";
$params['transaction[free]']= "WOOCOMMERCE_INTERMEDIADOR_v0.7.9";
$params["customer[name]"] = $_POST["billing_first_name"] . " " . $_POST["billing_last_name"];
$params["customer[cpf]"] = $_POST["billing_cpf"];

Expand Down Expand Up @@ -411,7 +410,6 @@ public function thankyou_page( $order_id ) {

$strPaymentMethod = "";
switch ( intval( $data['payment_method'] ) ) {
case 7: $strPaymentMethod = "Itaú";break;
case 14: $strPaymentMethod = "Peela";break;
case 21: $strPaymentMethod = "HSBC";break;
case 22: $strPaymentMethod = "Bradesco";break;
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: Integração Vindi, aguiart0, apiki
Tags: woocommerce, vindi, intermediador, Vindi Pagamento, payment
Requires at least: 3.5
Tested up to: 6.4
Stable tag: 0.7.8
Stable tag: 0.7.9
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -51,6 +51,9 @@ Para dúvidas envie um e-mail para nosso time de Integração: integracao@yapay.
2. Página de configuração do plugin

== Changelog ==
= 0.7.9 = 03/12/2024
* Feature: Transferência bancária do Itaú removida.

= 0.7.8 = 03/12/2024
* Fix: Ajuste tamanho do QrCode

Expand Down
1 change: 0 additions & 1 deletion templates/wc_yapay_intermediador_tef_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
$imgSrc = "";
foreach ($payment_methods as $idTcPayment){
switch (intval($idTcPayment)){
case 7: $imgSrc = "itau";break;
case 14: $imgSrc = "peela";break;
case 21: $imgSrc = "hsbc";break;
case 22: $imgSrc = "bradesco";break;
Expand Down
7 changes: 1 addition & 6 deletions wc-yapay_intermediador.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Intermediador de pagamento Vindi para a plataforma WooCommerce.
* Author: Integração Vindi Intermediador
* Author URI: https://vindi.com.br/
* Version: 0.7.8
* Version: 0.7.9
* Text Domain: vindi-pagamento
*/

Expand All @@ -25,7 +25,6 @@ function wc_gateway_yapay_intermediador_init() {
// If we made it this far, then include our Gateway Class
include_once( 'class-wc-yapay_intermediador-creditcard-gateway.php' );
include_once( 'class-wc-yapay_intermediador-bankslip-gateway.php' );
include_once( 'class-wc-yapay_intermediador-tef-gateway.php' );
include_once( 'class-wc-yapay_intermediador-pix-gateway.php' );
include_once( 'class-wc-yapay_intermediador-bolepix-gateway.php' );

Expand All @@ -34,7 +33,6 @@ function wc_gateway_yapay_intermediador_init() {
add_filter( 'woocommerce_payment_gateways', 'wc_yapay_intermediador_gateway_add' );
function wc_yapay_intermediador_gateway_add( $methods ) {
$methods[] = 'WC_Yapay_Intermediador_Creditcard_Gateway';
$methods[] = 'WC_Yapay_Intermediador_Tef_Gateway';
$methods[] = 'WC_Yapay_Intermediador_Bankslip_Gateway';
$methods[] = 'WC_Yapay_Intermediador_Pix_Gateway';
$methods[] = 'WC_Yapay_Intermediador_Bolepix_Gateway';
Expand All @@ -49,7 +47,6 @@ function html_log_page() {
function wc_gateway_yapay_intermediador_action_links( $links ) {
$plugin_links = array(
'<a href="' . admin_url( 'admin.php?page=wc-settings&tab=checkout&section=wc_yapay_intermediador_creditcard_gateway' ) . '">' . __( 'Config. Cartão', 'wc-yapay_intermediador-cc' ) . '</a>',
'<a href="' . admin_url( 'admin.php?page=wc-settings&tab=checkout&section=wc_yapay_intermediador_tef_gateway' ) . '">' . __( 'Config. TEF', 'wc-yapay_intermediador-tef' ) . '</a>',
'<a href="' . admin_url( 'admin.php?page=wc-settings&tab=checkout&section=wc_yapay_intermediador_bankslip_gateway' ) . '">' . __( 'Config. Boleto', 'wc-yapay_intermediador-bs' ) . '</a>',
'<a href="' . admin_url( 'admin.php?page=wc-settings&tab=checkout&section=wc_yapay_intermediador_pix_gateway' ) . '">' . __( 'Config. Pix', 'wc-yapay_intermediador-pix' ) . '</a>',
);
Expand Down Expand Up @@ -201,7 +198,6 @@ function wc_yapay_intermediador_notification() {
switch ($paymentOrder) {
case "wc_yapay_intermediador_bs": $tcPayment = new WC_Yapay_Intermediador_Bankslip_Gateway(); break;
case "wc_yapay_intermediador_cc": $tcPayment = new WC_Yapay_Intermediador_Creditcard_Gateway(); break;
case "wc_yapay_intermediador_tef": $tcPayment = new WC_Yapay_Intermediador_Tef_Gateway(); break;
case "wc_yapay_intermediador_pix": $tcPayment = new WC_Yapay_Intermediador_Pix_Gateway(); break;
case "wc_yapay_intermediador_bolepix": $tcPayment = new WC_Yapay_Intermediador_Bolepix_Gateway(); break;
default: $tcPayment = new WC_Yapay_Intermediador_Creditcard_Gateway();break;
Expand Down Expand Up @@ -408,7 +404,6 @@ function sendRastreioYapay() {
switch ($paymentOrder) {
case "wc_yapay_intermediador_bs": $tcConfig = new WC_Yapay_Intermediador_Bankslip_Gateway(); break;
case "wc_yapay_intermediador_cc": $tcConfig = new WC_Yapay_Intermediador_Creditcard_Gateway(); break;
case "wc_yapay_intermediador_tef": $tcConfig = new WC_Yapay_Intermediador_Tef_Gateway(); break;
case "wc_yapay_intermediador_pix": $tcConfig = new WC_Yapay_Intermediador_Pix_Gateway(); break;
case "wc_yapay_intermediador_bolepix": $tcConfig = new WC_Yapay_Intermediador_Bolepix_Gateway(); break;
default: $tcConfig = new WC_Yapay_Intermediador_Creditcard_Gateway();break;
Expand Down