Skip to content

Conversation

@cedran
Copy link
Contributor

@cedran cedran commented Jun 24, 2025

O que mudou

  • Introduzida a funcionalidade de One-click Buy para compras com Vindi Recorrência, permitindo ao cliente realizar recompra com apenas um clique.
  • Utilização dos endpoints de payment_profiles da API de recorrência da Vindi para cadastro, consulta, inativação, edição e exclusão de perfis de pagamento.
  • Adicionada opção de “Compra com um clique” na página de produto e dropdown para seleção de cartões salvos.
  • Implementado fluxo de pagamento automático: se o cliente já tiver perfil salvo, ao clicar em “Comprar com um clique” ele é redirecionado diretamente ao checkout usando o último cartão utilizado.
  • Inclusão de notificações ao cliente em caso de sucesso ou falha na transação.
  • Limitação inicial: disponível apenas para produtos virtuais.
  • Garantia de segurança dos dados seguindo as diretrizes da documentação da Vindi.

Motivação

Acelerar o processo de recompra e aumentar a conversão, proporcionando ao cliente uma experiência de compra rápida e fluida. Ao eliminar etapas manuais (reentrada de dados de cartão) e reutilizar perfis de pagamento previamente autorizados, reduzimos o atrito no checkout e fortalecemos o relacionamento recorrente com o cliente.


Solução proposta

  1. Verificação de perfil existente

    • Ao carregar a página de produto, consultar via API se o cliente já possui um payment_profile.
  2. Cadastro de novo perfil

    • Se for um cliente novo (sem perfil), solicitar autorização e cadastrar via endpoint POST /payment_profiles.
  3. Gestão de perfis

    • Implementar endpoints no módulo para:
      • Inativar perfil (PATCH /payment_profiles/{id} com status “inactive”).
      • Editar perfil (PUT /payment_profiles/{id}).
      • Excluir perfil (DELETE /payment_profiles/{id}).
  4. UI de One-click Buy

    • Botão “Comprar com um clique” na página do produto virtual.
    • Dropdown “Meus Cartões Salvos” para seleção de outro cartão.
    • Link “Alterar método de pagamento com um clique” direcionando para a listagem de cartões salvos.
  5. Fluxo de pagamento

    • Ao clicar, reutilizar o último cartão salvo ou o selecionado no dropdown.
    • Chamar POST /charges usando payment_profile_id para gerar a transação.
    • Redirecionar automaticamente para o checkout de confirmação ou exibir mensagem de erro.
  6. Notificações

    • Disparar e-mail ou toast in-app informando sucesso ou falha da transação.
  7. Segurança


Detalhes técnicos

  • API Vindi Recorrência: uso de endpoints em v1/payment_profiles e v1/charges.
  • Magento 2: extensão baseada em Plugins e Observers para interceptar o clique e integrar com a API.
  • Frontend: templates PHTML e Knockout.js para renderizar botão e dropdown na página de produto.
  • Backend:
    • Models para PaymentProfile e OneClickCharge.
    • Controllers REST para gerenciar perfis via AJAX.
  • MóduloConfig: novas rotas, ACLs e configurações de chave de API Vindi em Stores → Configuration.
  • Logs: registrar requisições e respostas da Vindi em nível DEBUG para facilitar troubleshooting.
  • Testes: cobertura unitária para serviços de API e testes manuais de fluxo de UI.

Como testar

  1. Configure as credenciais da Vindi (sandbox) em Stores → Configuration → Vindi Recorrência.
  2. Publique um produto virtual e abra sua página no storefront.
  3. Sem perfil: clique em “Comprar com um clique” e autorize o cadastro de cartão. Verifique cadastro via API e receba confirmação de compra.
  4. Com perfil existente: faça logout/login como mesmo cliente e clique novamente; confirme que a cobrança usa o mesmo cartão sem solicitar dados.
  5. Dropdown de cartões: cadastre dois perfis diferentes e alterne pelo dropdown antes de clicar; confirme cobrança com o cartão selecionado.
  6. Acesse Meus Cartões Salvos, inative, edite e exclua perfis; verifique efeitos na lista de opções do produto.
  7. Simule falha (por exemplo, cartão expirado) e valide o fluxo de erro e a notificação ao cliente.

Loja de teste

https://demo-vindi.loja.biz/painel

cedran and others added 30 commits October 1, 2024 17:17
Criação de link de pagamento (vindi#130)
…rédito no checkout (vindi#139)

## [2.2.0 - 14/01/2025](https://github.com/vindi/vindi-magento2/releases/tag/2.2.0)

- Novo layout do cartão de crédito na página de checkout
* Versionamento da 2.1.0 (vindi#134)

* Link de Pagamento - Cancelamento de Pedido (vindi#136)

* fix: add 'view/base/web/images/cc' images

* feat: adding information message when deleting credit card

* feat: add translate payment

* feat: committing the features of the functionality in general

* fix: error with null

* fix: unify settings on menu

* fix: unify settings on menu

* feat: Adding validation on the card success page

* feat: add delete payment link cron

* fix: returning composer to version '1.4.0'

* fix: delete payment link argument

* fix: correction of method names in the template

* fix: adjusting BillPaid webhook flow for when it is subscription and when it is not

* fix: correction when searching for customer data in purchases with pix in Model/Payment/Customer.php

* fix: PLANOS (1)

* fix: PLANOS (1) - quantidade de periodos vazio

* fix: PLANOS (2) - correcao de labels e quantidade de ate 31 dias

* fix: PLANOS (3) e (4) - ajuste na edicao de planos importados

* fix: PRODUTOS (1) e (2) - ajuste de cadastro de planos ao salvar produtos

* fix: - PRODUTOS (3) - removendo cache do campo observacoes

* fix: ASSINATURAS (2) - ajuste ao refazer pedidos de assinatura

* fix: ASSINATURAS (1) - correcao na aplicacao de descontos

* fix 2: PLANOS (3) e (4) - ajuste na edicao de planos importados

* fix: PLANOS - ajustes ao salvar configuracao da cobranca

* fix 2: PLANOS (1) - quantidade de periodos vazio

* fix: METODOS DE PAGAMENTO - correcao ao habilitar/desabilitar compras com recorrencia

* fix: CHECKOUT - duplicacao de mensagens

* fix: PLANOS adicionando ID ao code

* fix: PRODUTO - adicionando filtro no preco para valores maiores que zero

* fix: PLANOS - ajuste no code

* fix: CHECKOUT - compra como convidado

* fix: ASSINATURAS - ajuste na exibicao dos detalhes da assinatura

* fix: LOGS - aplicacao de mascara no CVV e no registry_code

* fix: PRODUTOS - exibicao de mensagem no carrinho

* feat: show discount at checkout and redirect customer to home page if link expires

* fix: LOG - refatoracao nas expressoes regulares

* fix: CHECKOUT - ajuste na url do boleto na renovacao de ciclo de assinatura

* fix: ajuste da label do botao de criar e enviar novo link de pagamento

* refactor: ajustando codigo para validacao do PHPStan

* VINDI-158: estilizacao paginas link de pagamento e sucesso

* Retorna arquivos comitados por engano

* feat: vindi payment link module

* fix: remove delete payment link after first access

* feat: frontend development

* fix: fix error Block/InfoTrait.php

* fix: pay now color

* feat: login is required, columns in the grid in the admin and frontend

* feat: mass action send payment link email

* feat: create payment link status

* fix: add status validation in mass payment link send

* fix: change link payment expiration time for 20 days

* fix: update expired link

* fix: change paid to processed status

* fix: creating email trigger config

* fix: changing the instruction label on the payment link success page

* fix: setting a default template if none is selected

* fix: name in from customer template

* feat: add transtale

* feat: adding access to the payment link also within the order

* fix: change the link status if the order is canceled and it has not yet been changed

* refactor: readjusting features to test them better

* changing the version to 2.1.0

* feat: mass sending of emails in the order grid

* feat: cancel order if payment link not processed

* fix: save payment additionoal information in saved card

* fix: version

* refactor: change translate

* fix: remove version in composer.json

* feat: when invoicing orders, payments are processed

* refactor: line comment

* fix: plan form format

---------

Co-authored-by: Iago Cedran <iago@bizcommerce.com.br>
Co-authored-by: Thiago Contardi <thiagocontardi@hotmail.com>
Co-authored-by: Caroline Esteves <carol@bizcommerce.com.br>

* Link de Pagamento - Template de Email (vindi#137)

* feat: adding information message when deleting credit card

* feat: add translation

* feat: add translate payment

* feat: committing the features of the functionality in general

* fix: error with null

* fix: unify settings on menu

* fix: unify settings on menu

* feat: Adding validation on the card success page

* feat: add delete payment link cron

* fix: returning composer to version '1.4.0'

* fix: delete payment link argument

* fix: correction of method names in the template

* fix: adjusting BillPaid webhook flow for when it is subscription and when it is not

* fix: correction when searching for customer data in purchases with pix in Model/Payment/Customer.php

* fix: PLANOS (1)

* fix: PLANOS (1) - quantidade de periodos vazio

* fix: PLANOS (2) - correcao de labels e quantidade de ate 31 dias

* fix: PLANOS (3) e (4) - ajuste na edicao de planos importados

* fix: PRODUTOS (1) e (2) - ajuste de cadastro de planos ao salvar produtos

* fix: - PRODUTOS (3) - removendo cache do campo observacoes

* fix: ASSINATURAS (2) - ajuste ao refazer pedidos de assinatura

* fix: ASSINATURAS (1) - correcao na aplicacao de descontos

* fix 2: PLANOS (3) e (4) - ajuste na edicao de planos importados

* fix: PLANOS - ajustes ao salvar configuracao da cobranca

* fix 2: PLANOS (1) - quantidade de periodos vazio

* fix: METODOS DE PAGAMENTO - correcao ao habilitar/desabilitar compras com recorrencia

* fix: CHECKOUT - duplicacao de mensagens

* fix: PLANOS adicionando ID ao code

* fix: PRODUTO - adicionando filtro no preco para valores maiores que zero

* fix: PLANOS - ajuste no code

* fix: CHECKOUT - compra como convidado

* fix: ASSINATURAS - ajuste na exibicao dos detalhes da assinatura

* fix: LOGS - aplicacao de mascara no CVV e no registry_code

* fix: PRODUTOS - exibicao de mensagem no carrinho

* feat: show discount at checkout and redirect customer to home page if link expires

* fix: LOG - refatoracao nas expressoes regulares

* fix: CHECKOUT - ajuste na url do boleto na renovacao de ciclo de assinatura

* fix: ajuste da label do botao de criar e enviar novo link de pagamento

* refactor: ajustando codigo para validacao do PHPStan

* VINDI-158: estilizacao paginas link de pagamento e sucesso

* Retorna arquivos comitados por engano

* feat: vindi payment link module

* fix: remove delete payment link after first access

* feat: frontend development

* fix: fix error Block/InfoTrait.php

* fix: pay now color

* feat: login is required, columns in the grid in the admin and frontend

* feat: mass action send payment link email

* feat: create payment link status

* fix: add status validation in mass payment link send

* fix: change link payment expiration time for 20 days

* fix: update expired link

* fix: change paid to processed status

* fix: creating email trigger config

* fix: changing the instruction label on the payment link success page

* fix: setting a default template if none is selected

* fix: name in from customer template

* feat: add transtale

* feat: adding access to the payment link also within the order

* fix: change the link status if the order is canceled and it has not yet been changed

* refactor: readjusting features to test them better

* changing the version to 2.1.0

* feat: mass sending of emails in the order grid

* feat: cancel order if payment link not processed

* feat: add template email by config

* fix: save payment additionoal information in saved card

* fix: version

* fix: adjusting link access correction

* refactor: change translate

* fix: remove version in composer.json

* feat: when invoicing orders, payments are processed

* fix: correcting to pick up emails, either the default, or those created from the default

* feat: changing the display of labels in the admin

* feat: adding expiration validation to access payment link success page

* fix: only 'vindi_vr_payment_link_template' custom email template

* fix: change form with get status

* feat: implementing single view system on success page

* refactor: line comment

* fix: plan form format

---------

Co-authored-by: Iago Cedran <iago@bizcommerce.com.br>
Co-authored-by: Thiago Contardi <thiagocontardi@hotmail.com>
Co-authored-by: Caroline Esteves <carol@bizcommerce.com.br>

* Novo layout do cartão de crédito na página de checkout (vindi#138)

* feat: removed deprecated magento 2 classes

* feat: removed deprecated magento 2 classes

* fix: remove unused patch

* fix: call non existing class

* fix: return composer version

* Versionamento da 2.1.0

* feat: new card layout

* fix: same input id for different fields

* fix: cacheable false for product view

* fix: add cache key info product block

* feat: added all available brands

---------

Co-authored-by: Iago Cedran <iago.cedran@gmail.com>
Co-authored-by: Thiago Contardi <thiago@bizcommerce.com.br>
Co-authored-by: Thais Kusuki <thais.kusuki@vindi.com.br>
Co-authored-by: Thais Kusuki <thais.kusuki@gmail.com>

* inserindo as outras alterações no merge

---------

Co-authored-by: Thais Kusuki <thais.kusuki@gmail.com>
Co-authored-by: Iago Cedran <iago.cedran@gmail.com>
Co-authored-by: Iago Cedran <iago@bizcommerce.com.br>
Co-authored-by: Thiago Contardi <thiagocontardi@hotmail.com>
Co-authored-by: Caroline Esteves <carol@bizcommerce.com.br>
Co-authored-by: Contardi <contardi@users.noreply.github.com>
Co-authored-by: Thiago Contardi <thiago@bizcommerce.com.br>
Co-authored-by: Thais Kusuki <thais.kusuki@vindi.com.br>
Novo layout do cartão de crédito na página de checkout (vindi#138)
Excluir/Incluir Itens na assinatura (vindi#141)
… release 2.3.0 (vindi#145)

* Versionamento da 2.1.0 (vindi#134)

* Link de Pagamento - Cancelamento de Pedido (vindi#136)

* fix: add 'view/base/web/images/cc' images

* feat: adding information message when deleting credit card

* feat: add translate payment

* feat: committing the features of the functionality in general

* fix: error with null

* fix: unify settings on menu

* fix: unify settings on menu

* feat: Adding validation on the card success page

* feat: add delete payment link cron

* fix: returning composer to version '1.4.0'

* fix: delete payment link argument

* fix: correction of method names in the template

* fix: adjusting BillPaid webhook flow for when it is subscription and when it is not

* fix: correction when searching for customer data in purchases with pix in Model/Payment/Customer.php

* fix: PLANOS (1)

* fix: PLANOS (1) - quantidade de periodos vazio

* fix: PLANOS (2) - correcao de labels e quantidade de ate 31 dias

* fix: PLANOS (3) e (4) - ajuste na edicao de planos importados

* fix: PRODUTOS (1) e (2) - ajuste de cadastro de planos ao salvar produtos

* fix: - PRODUTOS (3) - removendo cache do campo observacoes

* fix: ASSINATURAS (2) - ajuste ao refazer pedidos de assinatura

* fix: ASSINATURAS (1) - correcao na aplicacao de descontos

* fix 2: PLANOS (3) e (4) - ajuste na edicao de planos importados

* fix: PLANOS - ajustes ao salvar configuracao da cobranca

* fix 2: PLANOS (1) - quantidade de periodos vazio

* fix: METODOS DE PAGAMENTO - correcao ao habilitar/desabilitar compras com recorrencia

* fix: CHECKOUT - duplicacao de mensagens

* fix: PLANOS adicionando ID ao code

* fix: PRODUTO - adicionando filtro no preco para valores maiores que zero

* fix: PLANOS - ajuste no code

* fix: CHECKOUT - compra como convidado

* fix: ASSINATURAS - ajuste na exibicao dos detalhes da assinatura

* fix: LOGS - aplicacao de mascara no CVV e no registry_code

* fix: PRODUTOS - exibicao de mensagem no carrinho

* feat: show discount at checkout and redirect customer to home page if link expires

* fix: LOG - refatoracao nas expressoes regulares

* fix: CHECKOUT - ajuste na url do boleto na renovacao de ciclo de assinatura

* fix: ajuste da label do botao de criar e enviar novo link de pagamento

* refactor: ajustando codigo para validacao do PHPStan

* VINDI-158: estilizacao paginas link de pagamento e sucesso

* Retorna arquivos comitados por engano

* feat: vindi payment link module

* fix: remove delete payment link after first access

* feat: frontend development

* fix: fix error Block/InfoTrait.php

* fix: pay now color

* feat: login is required, columns in the grid in the admin and frontend

* feat: mass action send payment link email

* feat: create payment link status

* fix: add status validation in mass payment link send

* fix: change link payment expiration time for 20 days

* fix: update expired link

* fix: change paid to processed status

* fix: creating email trigger config

* fix: changing the instruction label on the payment link success page

* fix: setting a default template if none is selected

* fix: name in from customer template

* feat: add transtale

* feat: adding access to the payment link also within the order

* fix: change the link status if the order is canceled and it has not yet been changed

* refactor: readjusting features to test them better

* changing the version to 2.1.0

* feat: mass sending of emails in the order grid

* feat: cancel order if payment link not processed

* fix: save payment additionoal information in saved card

* fix: version

* refactor: change translate

* fix: remove version in composer.json

* feat: when invoicing orders, payments are processed

* refactor: line comment

* fix: plan form format

---------

Co-authored-by: Iago Cedran <iago@bizcommerce.com.br>
Co-authored-by: Thiago Contardi <thiagocontardi@hotmail.com>
Co-authored-by: Caroline Esteves <carol@bizcommerce.com.br>

* Link de Pagamento - Template de Email (vindi#137)

* feat: adding information message when deleting credit card

* feat: add translation

* feat: add translate payment

* feat: committing the features of the functionality in general

* fix: error with null

* fix: unify settings on menu

* fix: unify settings on menu

* feat: Adding validation on the card success page

* feat: add delete payment link cron

* fix: returning composer to version '1.4.0'

* fix: delete payment link argument

* fix: correction of method names in the template

* fix: adjusting BillPaid webhook flow for when it is subscription and when it is not

* fix: correction when searching for customer data in purchases with pix in Model/Payment/Customer.php

* fix: PLANOS (1)

* fix: PLANOS (1) - quantidade de periodos vazio

* fix: PLANOS (2) - correcao de labels e quantidade de ate 31 dias

* fix: PLANOS (3) e (4) - ajuste na edicao de planos importados

* fix: PRODUTOS (1) e (2) - ajuste de cadastro de planos ao salvar produtos

* fix: - PRODUTOS (3) - removendo cache do campo observacoes

* fix: ASSINATURAS (2) - ajuste ao refazer pedidos de assinatura

* fix: ASSINATURAS (1) - correcao na aplicacao de descontos

* fix 2: PLANOS (3) e (4) - ajuste na edicao de planos importados

* fix: PLANOS - ajustes ao salvar configuracao da cobranca

* fix 2: PLANOS (1) - quantidade de periodos vazio

* fix: METODOS DE PAGAMENTO - correcao ao habilitar/desabilitar compras com recorrencia

* fix: CHECKOUT - duplicacao de mensagens

* fix: PLANOS adicionando ID ao code

* fix: PRODUTO - adicionando filtro no preco para valores maiores que zero

* fix: PLANOS - ajuste no code

* fix: CHECKOUT - compra como convidado

* fix: ASSINATURAS - ajuste na exibicao dos detalhes da assinatura

* fix: LOGS - aplicacao de mascara no CVV e no registry_code

* fix: PRODUTOS - exibicao de mensagem no carrinho

* feat: show discount at checkout and redirect customer to home page if link expires

* fix: LOG - refatoracao nas expressoes regulares

* fix: CHECKOUT - ajuste na url do boleto na renovacao de ciclo de assinatura

* fix: ajuste da label do botao de criar e enviar novo link de pagamento

* refactor: ajustando codigo para validacao do PHPStan

* VINDI-158: estilizacao paginas link de pagamento e sucesso

* Retorna arquivos comitados por engano

* feat: vindi payment link module

* fix: remove delete payment link after first access

* feat: frontend development

* fix: fix error Block/InfoTrait.php

* fix: pay now color

* feat: login is required, columns in the grid in the admin and frontend

* feat: mass action send payment link email

* feat: create payment link status

* fix: add status validation in mass payment link send

* fix: change link payment expiration time for 20 days

* fix: update expired link

* fix: change paid to processed status

* fix: creating email trigger config

* fix: changing the instruction label on the payment link success page

* fix: setting a default template if none is selected

* fix: name in from customer template

* feat: add transtale

* feat: adding access to the payment link also within the order

* fix: change the link status if the order is canceled and it has not yet been changed

* refactor: readjusting features to test them better

* changing the version to 2.1.0

* feat: mass sending of emails in the order grid

* feat: cancel order if payment link not processed

* feat: add template email by config

* fix: save payment additionoal information in saved card

* fix: version

* fix: adjusting link access correction

* refactor: change translate

* fix: remove version in composer.json

* feat: when invoicing orders, payments are processed

* fix: correcting to pick up emails, either the default, or those created from the default

* feat: changing the display of labels in the admin

* feat: adding expiration validation to access payment link success page

* fix: only 'vindi_vr_payment_link_template' custom email template

* fix: change form with get status

* feat: implementing single view system on success page

* refactor: line comment

* fix: plan form format

---------

Co-authored-by: Iago Cedran <iago@bizcommerce.com.br>
Co-authored-by: Thiago Contardi <thiagocontardi@hotmail.com>
Co-authored-by: Caroline Esteves <carol@bizcommerce.com.br>

* Novo layout do cartão de crédito na página de checkout (vindi#138)

* feat: removed deprecated magento 2 classes

* feat: removed deprecated magento 2 classes

* fix: remove unused patch

* fix: call non existing class

* fix: return composer version

* Versionamento da 2.1.0

* feat: new card layout

* fix: same input id for different fields

* fix: cacheable false for product view

* fix: add cache key info product block

* feat: added all available brands

---------

Co-authored-by: Iago Cedran <iago.cedran@gmail.com>
Co-authored-by: Thiago Contardi <thiago@bizcommerce.com.br>
Co-authored-by: Thais Kusuki <thais.kusuki@vindi.com.br>
Co-authored-by: Thais Kusuki <thais.kusuki@gmail.com>

* Excluir/Incluir Itens na assinatura (vindi#141)

* feat: removed deprecated magento 2 classes

* feat: removed deprecated magento 2 classes

* fix: remove unused patch

* fix: call non existing class

* fix: return composer version

* Versionamento da 2.1.0

* feat: adding and deleting items in the subscription

* feat: exclude and include subscription items

* fix: adding validation so you can't exclude shipping or leave a subscription without a product

* feat: add duration in subscription item

* fix: add permanent option in item cycles

* refactor: restoring OrderCreator helper

* fix: adjust creation of new orders

* refactor: create observer to update subscription data

* feat: add quantity in subscription item

* fix: error updating subscription items in the observer

* fix: add validate quantity greater than zero

* fix: add validate quantity greater than zero

* fix: add validate quantity greater than zero

* fix: customer id error when create register

* fix: customer id error when create register

* fix: fixing zero price validations

* fix: finalizing orders with zero prices

* feat: new card layout

* fix: same input id for different fields

* fix: cacheable false for product view

* fix: add cache key info product block

* fix: add discount in subscriptions

* fix: correcting quantity validation in shipping

* feat: added all available brands

* fix: removed status on item creation

* fix: correcting duplication of items on the invoice

* fix: adjusting the addition of temporary items

* fix: removing the item when creating the invoice

* fix: removing the item when creating the invoice

* fix: removing the item when creating the invoice

* fix: removing the item when creating the invoice

* fix: removing the item when creating the invoice

* fix: removing duplication in translation

---------

Co-authored-by: Thiago Contardi <thiagocontardi@hotmail.com>
Co-authored-by: Thiago Contardi <thiago@bizcommerce.com.br>
Co-authored-by: Thais Kusuki <thais.kusuki@vindi.com.br>
Co-authored-by: Thais Kusuki <thais.kusuki@gmail.com>
Co-authored-by: Iago Cedran <iago@bizcommerce.com.br>
Co-authored-by: Contardi <contardi@users.noreply.github.com>

* Inativar/Ativar item na assinatura (vindi#142)

* feat: removed deprecated magento 2 classes

* feat: removed deprecated magento 2 classes

* fix: remove unused patch

* fix: call non existing class

* fix: return composer version

* Versionamento da 2.1.0

* feat: adding and deleting items in the subscription

* feat: exclude and include subscription items

* fix: adding validation so you can't exclude shipping or leave a subscription without a product

* feat: add duration in subscription item

* fix: add permanent option in item cycles

* refactor: restoring OrderCreator helper

* fix: adjust creation of new orders

* refactor: create observer to update subscription data

* feat: add quantity in subscription item

* fix: error updating subscription items in the observer

* fix: add validate quantity greater than zero

* fix: add validate quantity greater than zero

* fix: add validate quantity greater than zero

* fix: customer id error when create register

* fix: customer id error when create register

* fix: fixing zero price validations

* fix: finalizing orders with zero prices

* feat: adding option to change subscription item status

* feat: new card layout

* fix: same input id for different fields

* fix: cacheable false for product view

* fix: add cache key info product block

* fix: add discount in subscriptions

* fix: correcting quantity validation in shipping

* feat: added all available brands

* fix: removed status on item creation

* fix: correcting duplication of items on the invoice

* fix: adjusting the addition of temporary items

* fix: removing the item when creating the invoice

* fix: removing the item when creating the invoice

* fix: removing the item when creating the invoice

* fix: removing the item when creating the invoice

* fix: removing the item when creating the invoice

* fix: removing the item when creating the invoice

* fix: removing the item when creating the invoice

* fix: removing duplication in translation

* fix: remove duplicate itens

---------

Co-authored-by: Thiago Contardi <thiagocontardi@hotmail.com>
Co-authored-by: Thiago Contardi <thiago@bizcommerce.com.br>
Co-authored-by: Thais Kusuki <thais.kusuki@vindi.com.br>
Co-authored-by: Thais Kusuki <thais.kusuki@gmail.com>
Co-authored-by: Iago Cedran <iago@bizcommerce.com.br>
Co-authored-by: Contardi <contardi@users.noreply.github.com>

* Atualização de Segurança na Atividade de Links de Pagamento (vindi#143)

* feat: removed deprecated magento 2 classes

* feat: removed deprecated magento 2 classes

* fix: remove unused patch

* fix: call non existing class

* fix: return composer version

* Versionamento da 2.1.0

* feat: new card layout

* fix: same input id for different fields

* fix: cacheable false for product view

* fix: add cache key info product block

* feat: added all available brands

* feat: removing payment link from email and my orders

* fix: correcting pix qrcode size

* fix: error when creating order with new card

* fix: save cc_type name

* Atualiza `development` com a `master` (vindi#144)

* Versionamento da 2.1.0

* Nova versão plugin Magento2 VR - Inserindo novo layout de cartão de crédito no checkout (vindi#139)

## [2.2.0 - 14/01/2025](https://github.com/vindi/vindi-magento2/releases/tag/2.2.0)

- Novo layout do cartão de crédito na página de checkout

* Versão 2.2.0 (vindi#140)

* Versionamento da 2.1.0 (vindi#134)

* Link de Pagamento - Cancelamento de Pedido (vindi#136)

* fix: add 'view/base/web/images/cc' images

* feat: adding information message when deleting credit card

* feat: add translate payment

* feat: committing the features of the functionality in general

* fix: error with null

* fix: unify settings on menu

* fix: unify settings on menu

* feat: Adding validation on the card success page

* feat: add delete payment link cron

* fix: returning composer to version '1.4.0'

* fix: delete payment link argument

* fix: correction of method names in the template

* fix: adjusting BillPaid webhook flow for when it is subscription and when it is not

* fix: correction when searching for customer data in purchases with pix in Model/Payment/Customer.php

* fix: PLANOS (1)

* fix: PLANOS (1) - quantidade de periodos vazio

* fix: PLANOS (2) - correcao de labels e quantidade de ate 31 dias

* fix: PLANOS (3) e (4) - ajuste na edicao de planos importados

* fix: PRODUTOS (1) e (2) - ajuste de cadastro de planos ao salvar produtos

* fix: - PRODUTOS (3) - removendo cache do campo observacoes

* fix: ASSINATURAS (2) - ajuste ao refazer pedidos de assinatura

* fix: ASSINATURAS (1) - correcao na aplicacao de descontos

* fix 2: PLANOS (3) e (4) - ajuste na edicao de planos importados

* fix: PLANOS - ajustes ao salvar configuracao da cobranca

* fix 2: PLANOS (1) - quantidade de periodos vazio

* fix: METODOS DE PAGAMENTO - correcao ao habilitar/desabilitar compras com recorrencia

* fix: CHECKOUT - duplicacao de mensagens

* fix: PLANOS adicionando ID ao code

* fix: PRODUTO - adicionando filtro no preco para valores maiores que zero

* fix: PLANOS - ajuste no code

* fix: CHECKOUT - compra como convidado

* fix: ASSINATURAS - ajuste na exibicao dos detalhes da assinatura

* fix: LOGS - aplicacao de mascara no CVV e no registry_code

* fix: PRODUTOS - exibicao de mensagem no carrinho

* feat: show discount at checkout and redirect customer to home page if link expires

* fix: LOG - refatoracao nas expressoes regulares

* fix: CHECKOUT - ajuste na url do boleto na renovacao de ciclo de assinatura

* fix: ajuste da label do botao de criar e enviar novo link de pagamento

* refactor: ajustando codigo para validacao do PHPStan

* VINDI-158: estilizacao paginas link de pagamento e sucesso

* Retorna arquivos comitados por engano

* feat: vindi payment link module

* fix: remove delete payment link after first access

* feat: frontend development

* fix: fix error Block/InfoTrait.php

* fix: pay now color

* feat: login is required, columns in the grid in the admin and frontend

* feat: mass action send payment link email

* feat: create payment link status

* fix: add status validation in mass payment link send

* fix: change link payment expiration time for 20 days

* fix: update expired link

* fix: change paid to processed status

* fix: creating email trigger config

* fix: changing the instruction label on the payment link success page

* fix: setting a default template if none is selected

* fix: name in from customer template

* feat: add transtale

* feat: adding access to the payment link also within the order

* fix: change the link status if the order is canceled and it has not yet been changed

* refactor: readjusting features to test them better

* changing the version to 2.1.0

* feat: mass sending of emails in the order grid

* feat: cancel order if payment link not processed

* fix: save payment additionoal information in saved card

* fix: version

* refactor: change translate

* fix: remove version in composer.json

* feat: when invoicing orders, payments are processed

* refactor: line comment

* fix: plan form format

---------

Co-authored-by: Iago Cedran <iago@bizcommerce.com.br>
Co-authored-by: Thiago Contardi <thiagocontardi@hotmail.com>
Co-authored-by: Caroline Esteves <carol@bizcommerce.com.br>

* Link de Pagamento - Template de Email (vindi#137)

* feat: adding information message when deleting credit card

* feat: add translation

* feat: add translate payment

* feat: committing the features of the functionality in general

* fix: error with null

* fix: unify settings on menu

* fix: unify settings on menu

* feat: Adding validation on the card success page

* feat: add delete payment link cron

* fix: returning composer to version '1.4.0'

* fix: delete payment link argument

* fix: correction of method names in the template

* fix: adjusting BillPaid webhook flow for when it is subscription and when it is not

* fix: correction when searching for customer data in purchases with pix in Model/Payment/Customer.php

* fix: PLANOS (1)

* fix: PLANOS (1) - quantidade de periodos vazio

* fix: PLANOS (2) - correcao de labels e quantidade de ate 31 dias

* fix: PLANOS (3) e (4) - ajuste na edicao de planos importados

* fix: PRODUTOS (1) e (2) - ajuste de cadastro de planos ao salvar produtos

* fix: - PRODUTOS (3) - removendo cache do campo observacoes

* fix: ASSINATURAS (2) - ajuste ao refazer pedidos de assinatura

* fix: ASSINATURAS (1) - correcao na aplicacao de descontos

* fix 2: PLANOS (3) e (4) - ajuste na edicao de planos importados

* fix: PLANOS - ajustes ao salvar configuracao da cobranca

* fix 2: PLANOS (1) - quantidade de periodos vazio

* fix: METODOS DE PAGAMENTO - correcao ao habilitar/desabilitar compras com recorrencia

* fix: CHECKOUT - duplicacao de mensagens

* fix: PLANOS adicionando ID ao code

* fix: PRODUTO - adicionando filtro no preco para valores maiores que zero

* fix: PLANOS - ajuste no code

* fix: CHECKOUT - compra como convidado

* fix: ASSINATURAS - ajuste na exibicao dos detalhes da assinatura

* fix: LOGS - aplicacao de mascara no CVV e no registry_code

* fix: PRODUTOS - exibicao de mensagem no carrinho

* feat: show discount at checkout and redirect customer to home page if link expires

* fix: LOG - refatoracao nas expressoes regulares

* fix: CHECKOUT - ajuste na url do boleto na renovacao de ciclo de assinatura

* fix: ajuste da label do botao de criar e enviar novo link de pagamento

* refactor: ajustando codigo para validacao do PHPStan

* VINDI-158: estilizacao paginas link de pagamento e sucesso

* Retorna arquivos comitados por engano

* feat: vindi payment link module

* fix: remove delete payment link after first access

* feat: frontend development

* fix: fix error Block/InfoTrait.php

* fix: pay now color

* feat: login is required, columns in the grid in the admin and frontend

* feat: mass action send payment link email

* feat: create payment link status

* fix: add status validation in mass payment link send

* fix: change link payment expiration time for 20 days

* fix: update expired link

* fix: change paid to processed status

* fix: creating email trigger config

* fix: changing the instruction label on the payment link success page

* fix: setting a default template if none is selected

* fix: name in from customer template

* feat: add transtale

* feat: adding access to the payment link also within the order

* fix: change the link status if the order is canceled and it has not yet been changed

* refactor: readjusting features to test them better

* changing the version to 2.1.0

* feat: mass sending of emails in the order grid

* feat: cancel order if payment link not processed

* feat: add template email by config

* fix: save payment additionoal information in saved card

* fix: version

* fix: adjusting link access correction

* refactor: change translate

* fix: remove version in composer.json

* feat: when invoicing orders, payments are processed

* fix: correcting to pick up emails, either the default, or those created from the default

* feat: changing the display of labels in the admin

* feat: adding expiration validation to access payment link success page

* fix: only 'vindi_vr_payment_link_template' custom email template

* fix: change form with get status

* feat: implementing single view system on success page

* refactor: line comment

* fix: plan form format

---------

Co-authored-by: Iago Cedran <iago@bizcommerce.com.br>
Co-authored-by: Thiago Contardi <thiagocontardi@hotmail.com>
Co-authored-by: Caroline Esteves <carol@bizcommerce.com.br>

* Novo layout do cartão de crédito na página de checkout (vindi#138)

* feat: removed deprecated magento 2 classes

* feat: removed deprecated magento 2 classes

* fix: remove unused patch

* fix: call non existing class

* fix: return composer version

* Versionamento da 2.1.0

* feat: new card layout

* fix: same input id for different fields

* fix: cacheable false for product view

* fix: add cache key info product block

* feat: added all available brands

---------

Co-authored-by: Iago Cedran <iago.cedran@gmail.com>
Co-authored-by: Thiago Contardi <thiago@bizcommerce.com.br>
Co-authored-by: Thais Kusuki <thais.kusuki@vindi.com.br>
Co-authored-by: Thais Kusuki <thais.kusuki@gmail.com>

* inserindo as outras alterações no merge

---------

Co-authored-by: Thais Kusuki <thais.kusuki@gmail.com>
Co-authored-by: Iago Cedran <iago.cedran@gmail.com>
Co-authored-by: Iago Cedran <iago@bizcommerce.com.br>
Co-authored-by: Thiago Contardi <thiagocontardi@hotmail.com>
Co-authored-by: Caroline Esteves <carol@bizcommerce.com.br>
Co-authored-by: Contardi <contardi@users.noreply.github.com>
Co-authored-by: Thiago Contardi <thiago@bizcommerce.com.br>
Co-authored-by: Thais Kusuki <thais.kusuki@vindi.com.br>

---------

Co-authored-by: Thais Kusuki <thais.kusuki@vindi.com.br>
Co-authored-by: Thais Kusuki <thais.kusuki@gmail.com>
Co-authored-by: Thalita Nascimento <77510375+thalita-nascimento-vindi@users.noreply.github.com>
Co-authored-by: Iago Cedran <iago.cedran@gmail.com>
Co-authored-by: Iago Cedran <iago@bizcommerce.com.br>
Co-authored-by: Thiago Contardi <thiagocontardi@hotmail.com>
Co-authored-by: Caroline Esteves <carol@bizcommerce.com.br>
Co-authored-by: Contardi <contardi@users.noreply.github.com>
Co-authored-by: Thiago Contardi <thiago@bizcommerce.com.br>

---------

Co-authored-by: Thais Kusuki <thais.kusuki@gmail.com>
Co-authored-by: Iago Cedran <iago.cedran@gmail.com>
Co-authored-by: Iago Cedran <iago@bizcommerce.com.br>
Co-authored-by: Thiago Contardi <thiagocontardi@hotmail.com>
Co-authored-by: Caroline Esteves <carol@bizcommerce.com.br>
Co-authored-by: Contardi <contardi@users.noreply.github.com>
Co-authored-by: Thiago Contardi <thiago@bizcommerce.com.br>
Co-authored-by: Thais Kusuki <thais.kusuki@vindi.com.br>
Co-authored-by: Thalita Nascimento <77510375+thalita-nascimento-vindi@users.noreply.github.com>
* Versionamento da 2.3.0

* Altera data da release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants