Giter Site home page Giter Site logo

mundipagg / magento2 Goto Github PK

View Code? Open in Web Editor NEW
5.0 6.0 5.0 2.43 MB

:v: MundiPagg Magento2 Module

License: MIT License

PHP 74.31% HTML 8.54% JavaScript 16.96% CSS 0.17% Shell 0.01% Dockerfile 0.01%
magento2 magento2-module magento2-extension mundipagg payment-gateway payment payment-module magento2-plugin

magento2's People

Contributors

backstage-me-stg[bot] avatar cadohr avatar danielmadu avatar feletodev avatar felipebool avatar gabrieldeveloper avatar lilianalessa avatar michelpl avatar netorodrigues avatar renatocmaia avatar thiagobarradas avatar wallacesf avatar yanpantoja avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

magento2's Issues

Error in di:compile Magento 2.4

Status

BUG REPORT - This error only happens in Magento 2.4 +.

Steps

  1. Install Version 2.4.15-beta in a Magento 2.4
  2. Run bin/magento setup:di:compile
  3. The Error is displayed

Expected behaviour

Setup:di:compile run with success!

Actual behaviour

Class Magento\Braintree\Helper\CcType does not exist

Posible Soluction

Change the "Magento\Braintree\Helper\CcType" class to the "Paypal\Braintree\Helper\CcType" class in the Mundipagg\Mundipagg\Block\Adminhtml\Form\Field\CcTypes

Environment

Magento Version: 2.4
PHP Version: 7.4.8

Logs / Stack trace

In ClassReader.php line 43:

  Class Magento\Braintree\Helper\CcType does not exist

In ClassReader.php line 36:

  Class Magento\Braintree\Helper\CcType does not exist

Desconto cartão 1x

SUGESTÃO

Criar uma opção para oferecer desconto no cartão, quando for realizado o pagamento em 1x.

Missing class file

Status

BUG REPORT

Steps

  1. Go to line 30 of the etc/di.xml file (link here)
  2. In this line, there is a preference with type MundiPagg\MundiPagg\Model\CustomerCreateManagement
  3. Go to the Model directory
  4. There is no CustomerCreateManagement class

Expected behaviour

Class CustomerCreateManagement should be found inside the Model directory

Actual behaviour

Class CustomerCreateManagement is not found

Problema ao adicionar produtos com quantidade maior que 1 ao carrinho

Olá,
Usando a versão "2.*@beta" notei um erro quando tenho o campo de quantidade ao adicionar o produto ao carrinho.

Na classe JustOneProductPlanInCart, o código está apenas verificando a quantidade do produto e não se existe um plan no carrinho.
Eu estou adicionando um produto normal e está dando erro.
Eu dei um improve na condição para funcionar mas recomendo alguem olhar isso.
Atual:
if ($currentProduct->getQuantity() > 1) { $this->error = $this->i18n->getDashboard( 'You must have only one product plan in the cart' ); }

Minha correção:
if (!empty($productListInCart->getProductsPlan()) && $currentProduct->getQuantity() > 1) { $this->error = $this->i18n->getDashboard( 'You must have only one product plan in the cart' ); }

Voucher Payment

É possível receber por meio de vouchers utilizando o módulo? VR/SODEXO

Implementação de algumas informações adicionais no campo additional_information

Tags

BUG REPORT

Descrição

Durante o desenvolvimento de um projeto, precisamos implementar algumas informações adicionais no retorno da API orders do magento, informações referentes a forma de pagamento Boleto e Cartão de crédito.
No caso, verificamos que podemos utilizar o campo additional_information da tabela sales_order_payment para armazenar essas informações adicionais que são retornadas pela API da mundipagg.

O que tentamos fazer para implementar a melhoria

Verificamos o código responsável no módulo em comunicar com a API da mundipagg, encontramos o trecho de código que provavelmente adiciona essas informações no campo Additional Information.
No diretório vendor/mundipagg/mundipagg-magento2-module/Gateway/Transaction/Billet/ResourceGateway/Create/Response/GeneralHandler.php (nesse caso, o Handler para a forma de pagamento Boleto), na função _handle, existe o seguinte código como padrão (na versão 2.4 beta do módulo)
$boletoUrl = $response->charges[0]->lastTransaction->pdf; $payment->setAdditionalInformation('billet_url', $boletoUrl);

Contudo, no campo additional_information da tabela sales_order_payment, não existe esse campo billet_url criado.
Também seguimos esse padrão para inserir as outras informações que necessitamos, porém esses campos também não foram armazenados no campo na tabela.

Magento 2.4.4 not compatible

Status

BUG REPORT

Extension is not compatible with Magento 2.4.4.

New Magento version uses monolog/monolog 2.x version and this extension requires an old version.

Checklist

Add a checklist if this is a task

  • Add slack integration
  • [_] Support xyz

Steps

  1. Update Magento to 2.4.4
  2. Install the extension

Expected behavior

Installation concludes successfully and we can use the extension

Actual behavior

Can't conclude the installation.

Environment

Magento 2.4.4

Logs / Stack trace

Problem 1
- mundipagg/mundipagg-magento2-module dev-master requires mundipagg/ecommerce-module-core 2.8.8 -> satisfiable by mundipagg/ecommerce-module-core[2.8.8].
- Installation request for mundipagg/mundipagg-magento2-module dev-master -> satisfiable by mundipagg/mundipagg-magento2-module[dev-master].
- Conclusion: remove monolog/monolog 2.x-dev
- Conclusion: don't install monolog/monolog 2.x-dev
- mundipagg/ecommerce-module-core 2.8.8 requires monolog/monolog ~1.6 -> satisfiable by monolog/monolog[1.10.0, 1.11.0, 1.12.0, 1.13.0, 1.13.1, 1.14.0, 1.15.0, 1.16.0, 1.17.0, 1.17.1, 1.17.2, 1.18.0, 1.18.1, 1.18.2, 1.19.0, 1.20.0, 1.21.0, 1.22.0, 1.22.1, 1.23.0, 1.24.0, 1.25.0, 1.25.1, 1.25.2, 1.25.3, 1.25.4, 1.25.5, 1.26.0, 1.26.1, 1.27.0, 1.6.0, 1.7.0, 1.8.0, 1.9.0, 1.9.1, 1.x-dev].
- Can only install one of: monolog/monolog[1.10.0, 2.x-dev].
- Can only install one of: monolog/monolog[1.11.0, 2.x-dev].
- Can only install one of: monolog/monolog[1.12.0, 2.x-dev].
- Can only install one of: monolog/monolog[1.13.0, 2.x-dev].
- Can only install one of: monolog/monolog[1.13.1, 2.x-dev].
- Can only install one of: monolog/monolog[1.14.0, 2.x-dev].
- Can only install one of: monolog/monolog[1.15.0, 2.x-dev].
- Can only install one of: monolog/monolog[1.16.0, 2.x-dev].
- Can only install one of: monolog/monolog[1.17.0, 2.x-dev].
- Can only install one of: monolog/monolog[1.17.1, 2.x-dev].
- Can only install one of: monolog/monolog[1.17.2, 2.x-dev].
- Can only install one of: monolog/monolog[1.18.0, 2.x-dev].
- Can only install one of: monolog/monolog[1.18.1, 2.x-dev].
- Can only install one of: monolog/monolog[1.18.2, 2.x-dev].
- Can only install one of: monolog/monolog[1.19.0, 2.x-dev].
- Can only install one of: monolog/monolog[1.20.0, 2.x-dev].
- Can only install one of: monolog/monolog[1.21.0, 2.x-dev].
- Can only install one of: monolog/monolog[1.22.0, 2.x-dev].
- Can only install one of: monolog/monolog[1.22.1, 2.x-dev].
- Can only install one of: monolog/monolog[1.23.0, 2.x-dev].
- Can only install one of: monolog/monolog[1.24.0, 2.x-dev].
- Can only install one of: monolog/monolog[1.25.0, 2.x-dev].
- Can only install one of: monolog/monolog[1.25.1, 2.x-dev].
- Can only install one of: monolog/monolog[1.25.2, 2.x-dev].
- Can only install one of: monolog/monolog[1.25.3, 2.x-dev].
- Can only install one of: monolog/monolog[1.25.4, 2.x-dev].
- Can only install one of: monolog/monolog[1.25.5, 2.x-dev].
- Can only install one of: monolog/monolog[1.26.0, 2.x-dev].
- Can only install one of: monolog/monolog[1.26.1, 2.x-dev].
- Can only install one of: monolog/monolog[1.27.0, 2.x-dev].
- Can only install one of: monolog/monolog[1.6.0, 2.x-dev].
- Can only install one of: monolog/monolog[1.7.0, 2.x-dev].
- Can only install one of: monolog/monolog[1.8.0, 2.x-dev].
- Can only install one of: monolog/monolog[1.9.0, 2.x-dev].
- Can only install one of: monolog/monolog[1.9.1, 2.x-dev].
- Can only install one of: monolog/monolog[1.x-dev, 2.x-dev].
- Installation request for monolog/monolog (locked at 2.x-dev) -> satisfiable by monolog/monolog[2.x-dev].

D+1 identificando feriados e finais de semanas

No módulo atual caso o cliente compre na sexta com boleto, o boleto terá seu vencimento no sábado.

A sugestão é o módulo reconhecer automaticamente sábado e domingo e permitir adicionar os feriados pulando a data do vencimento.

Doubt - Payment method request

Status

I'm trying to make a purchase using the magento api with mundipagg's credit card payment method, I know that magento offers an example for bank transfer:

{ "paymentMethod": { "method": "banktransfer" }, "billing_address": { "email": "[email protected]", "region": "New York", "region_id": 43, "region_code": "NY", "country_id": "US", "street": [ "123 Oak Ave" ], "postcode": "10577", "city": "Purchase", "telephone": "512-555-1111", "firstname": "Jane", "lastname": "Donate" } }

How would json look for mundipagg credit card payment?

Steps

  1. Make a purchase using the magento api using mundipagg's credit card payment method.

Expected behavior

Make the purchase using a credit card.

Real behavior

I can't make the purchase using mundipagg's credit card payment method with the magento api.

Environment

Magento: 2.4.1

Logs / Stack trace

"message": "Internal Error. Details are available in Magento log file. Report ID: webapi-609c195fd29fb"

Voucher Alelo e Voucher Sodexo

Testei os dois Vouchers em produção (alelo e sodexo) e os dois estão com erro na versão beta 2.2.0.

Sodexo está com problema para validar o installments. Verifiquei que isso ocorre no arquivo AbstractCreditCardPayment.php na linha 81
$this->validateIfIsRealInstallment($installments);

Alelo está com problema de bandeira. O campo cc_type muda para "aura" quando eu coloco um cartão Alelo válido. Então não sei se ele está com o problema problema do Sodexo porque para antes.

tem como verificarem por favor?

Can't place order

Status

BUG REPORT / TASK

Checklist

Add checklist if this is a task

Steps

  1. Login
  2. Add product to cart
  3. Go to Checkout
  4. Select shipping method
  5. Select Billet and Place Order

Expected behaviour

Place Order

Actual behaviour

the store gives me an error saying that a server error occurred

Environment

Magento 2.2.2 C.E Only with ESPL_Onepagecheckout and Mundipagg_Mundipagg instaled

Logs / Stack trace

$ cat mundipagg-2018-03-06.log 
2018-03-06T04:06:56+00:00 INFO (6): array (
  'items' => 
  array (
    0 => 
    array (
      'amount' => 5990.0,
      'description' => 'product',
      'quantity' => 2,
    ),
  ),
  'customer' => 
  array (
    'name' => 'Luiz  Fernando',
    'email' => '[email protected]',
    'document' => '090.380.889-73',
    'type' => 'individual',
    'address' => 
    array (
      'street' => 'Lima',
      'number' => '123',
      'complement' => 'Endereço',
      'zip_code' => '86.025901',
      'neighborhood' => '123',
      'city' => 'Cidade',
      'state' => 'AL',
      'country' => 'BR',
    ),
  ),
  'payments' => 
  array (
    0 => 
    array (
      'amount' => 20980.0,
      'payment_method' => 'boleto',
      'capture' => false,
      'boleto' => 
      array (
        'bank' => '341',
        'instructions' => NULL,
        'due_at' => '2018-03-11T00:00:00Z',
      ),
    ),
  ),
  'code' => '000000030',
  'customer_id' => NULL,
  'shipping' => 
  array (
    'amount' => 9000.0,
    'description' => '.',
    'address' => 
    array (
      'street' => 'Lima',
      'number' => '123',
      'complement' => 'Endereço',
      'zip_code' => '86.025901',
      'neighborhood' => '123',
      'city' => 'Cidade',
      'state' => 'AL',
      'country' => 'BR',
    ),
  ),
  'metadata' => 
  array (
    'module_name' => 'Magento 2',
    'module_version' => '1.2.14',
  ),
  'closed' => true,
  'antifraud_enabled' => NULL,
  'ip' => '127.0.0.1',
  'session_id' => NULL,
  'location' => NULL,
  'device' => NULL,
)
2018-03-06T04:06:57+00:00 INFO (6): MundiAPILib\Exceptions\ErrorException: Authorization has been denied for this request. in /var/www/magento/vendor/mundipagg/mundiapi/src/Controllers/BaseController.php:75
Stack trace:
#0 /var/www/magento/vendor/mundipagg/mundiapi/src/Controllers/OrdersController.php(152): MundiAPILib\Controllers\BaseController->validateResponse(Object(MundiAPILib\Http\HttpResponse), Object(MundiAPILib\Http\HttpContext))
#1 /var/www/magento/vendor/mundipagg/mundipagg-magento2-module/Gateway/Transaction/Billet/ResourceGateway/Create/RequestBuilder.php(229): MundiAPILib\Controllers\OrdersController->createOrder(Object(MundiAPILib\Models\CreateOrderRequest))
#2 /var/www/magento/vendor/mundipagg/mundipagg-magento2-module/Gateway/Transaction/Billet/ResourceGateway/Create/RequestBuilder.php(100): MundiPagg\MundiPagg\Gateway\Transaction\Billet\ResourceGateway\Create\RequestBuilder->createNewRequest(Object(MundiPagg\MundiPagg\Gateway\Transaction\Billet\ResourceGateway\Create\RequestDataProvider))
#3 /var/www/magento/vendor/mundipagg/mundipagg-magento2-module/Gateway/Transaction/Base/Command/AbstractApiCommand.php(48): MundiPagg\MundiPagg\Gateway\Transaction\Billet\ResourceGateway\Create\RequestBuilder->build(Array)
#4 /var/www/magento/vendor/magento/module-payment/Model/Method/Adapter.php(546): MundiPagg\MundiPagg\Gateway\Transaction\Base\Command\AbstractApiCommand->execute(Array)
#5 /var/www/magento/vendor/magento/module-payment/Model/Method/Adapter.php(448): Magento\Payment\Model\Method\Adapter->executeCommand('authorize', Array)
#6 /var/www/magento/generated/code/Magento/Payment/Model/Method/Adapter/Interceptor.php(349): Magento\Payment\Model\Method\Adapter->authorize(Object(Magento\Sales\Model\Order\Payment\Interceptor), 209.8)
#7 /var/www/magento/vendor/magento/module-sales/Model/Order/Payment/Operations/AuthorizeOperation.php(45): Magento\Payment\Model\Method\Adapter\Interceptor->authorize(Object(Magento\Sales\Model\Order\Payment\Interceptor), 209.8)
#8 /var/www/magento/vendor/magento/module-sales/Model/Order/Payment/Processor.php(72): Magento\Sales\Model\Order\Payment\Operations\AuthorizeOperation->authorize(Object(Magento\Sales\Model\Order\Payment\Interceptor), true, 209.8)
#9 /var/www/magento/vendor/magento/module-sales/Model/Order/Payment.php(1107): Magento\Sales\Model\Order\Payment\Processor->authorize(Object(Magento\Sales\Model\Order\Payment\Interceptor), true, 209.8)
#10 /var/www/magento/generated/code/Magento/Sales/Model/Order/Payment/Interceptor.php(427): Magento\Sales\Model\Order\Payment->authorize(true, 209.8)
#11 /var/www/magento/vendor/mundipagg/mundipagg-magento2-module/Gateway/Transaction/Base/Command/InitializeCommand.php(42): Magento\Sales\Model\Order\Payment\Interceptor->authorize(true, 209.8)
#12 /var/www/magento/vendor/magento/module-payment/Model/Method/Adapter.php(546): MundiPagg\MundiPagg\Gateway\Transaction\Base\Command\InitializeCommand->execute(Array)
#13 /var/www/magento/vendor/magento/module-payment/Model/Method/Adapter.php(652): Magento\Payment\Model\Method\Adapter->executeCommand('initialize', Array)
#14 /var/www/magento/generated/code/Magento/Payment/Model/Method/Adapter/Interceptor.php(557): Magento\Payment\Model\Method\Adapter->initialize('authorize', Object(Magento\Framework\DataObject))
#15 /var/www/magento/vendor/magento/module-sales/Model/Order/Payment.php(360): Magento\Payment\Model\Method\Adapter\Interceptor->initialize('authorize', Object(Magento\Framework\DataObject))
#16 /var/www/magento/generated/code/Magento/Sales/Model/Order/Payment/Interceptor.php(167): Magento\Sales\Model\Order\Payment->place()
#17 /var/www/magento/vendor/magento/module-sales/Model/Order.php(862): Magento\Sales\Model\Order\Payment\Interceptor->place()
#18 /var/www/magento/vendor/magento/module-sales/Model/Order.php(1051): Magento\Sales\Model\Order->_placePayment()
#19 /var/www/magento/generated/code/Magento/Sales/Model/Order/Interceptor.php(479): Magento\Sales\Model\Order->place()
#20 /var/www/magento/vendor/magento/module-sales/Model/Service/OrderService.php(191): Magento\Sales\Model\Order\Interceptor->place()
#21 /var/www/magento/vendor/magento/module-quote/Model/QuoteManagement.php(511): Magento\Sales\Model\Service\OrderService->place(Object(Magento\Sales\Model\Order\Interceptor))
#22 /var/www/magento/vendor/magento/module-quote/Model/QuoteManagement.php(406): Magento\Quote\Model\QuoteManagement->submitQuote(Object(Magento\Quote\Model\Quote), Array)
#23 /var/www/magento/vendor/magento/module-quote/Model/QuoteManagement.php(364): Magento\Quote\Model\QuoteManagement->submit(Object(Magento\Quote\Model\Quote))
#24 /var/www/magento/vendor/magento/module-checkout/Model/PaymentInformationManagement.php(83): Magento\Quote\Model\QuoteManagement->placeOrder(22)
#25 /var/www/magento/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Checkout\Model\PaymentInformationManagement->savePaymentInformationAndPlaceOrder(22, Object(Magento\Quote\Model\Quote\Payment), Object(Magento\Quote\Model\Quote\Address))
#26 /var/www/magento/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Checkout\Model\PaymentInformationManagement\Interceptor->___callParent('savePaymentInfo...', Array)
#27 /var/www/magento/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Checkout\Model\PaymentInformationManagement\Interceptor->Magento\Framework\Interception\{closure}(22, Object(Magento\Quote\Model\Quote\Payment), Object(Magento\Quote\Model\Quote\Address))
#28 /var/www/magento/generated/code/Magento/Checkout/Model/PaymentInformationManagement/Interceptor.php(26): Magento\Checkout\Model\PaymentInformationManagement\Interceptor->___callPlugins('savePaymentInfo...', Array, Array)
#29 [internal function]: Magento\Checkout\Model\PaymentInformationManagement\Interceptor->savePaymentInformationAndPlaceOrder(22, Object(Magento\Quote\Model\Quote\Payment), Object(Magento\Quote\Model\Quote\Address))
#30 /var/www/magento/vendor/magento/module-webapi/Controller/Rest.php(330): call_user_func_array(Array, Array)
#31 /var/www/magento/vendor/magento/module-webapi/Controller/Rest.php(239): Magento\Webapi\Controller\Rest->processApiRequest()
#32 /var/www/magento/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Webapi\Controller\Rest->dispatch(Object(Magento\Framework\App\Request\Http))
#33 /var/www/magento/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Webapi\Controller\Rest\Interceptor->___callParent('dispatch', Array)
#34 /var/www/magento/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Webapi\Controller\Rest\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#35 /var/www/magento/generated/code/Magento/Webapi/Controller/Rest/Interceptor.php(39): Magento\Webapi\Controller\Rest\Interceptor->___callPlugins('dispatch', Array, Array)
#36 /var/www/magento/vendor/magento/framework/App/Http.php(135): Magento\Webapi\Controller\Rest\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#37 /var/www/magento/generated/code/Magento/Framework/App/Http/Interceptor.php(24): Magento\Framework\App\Http->launch()
#38 /var/www/magento/vendor/magento/framework/App/Bootstrap.php(256): Magento\Framework\App\Http\Interceptor->launch()
#39 /var/www/magento/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))
#40 {main}

Uninstall - Remover todos os atributos e tabelas criados

STATUS

BUG REPORT

STEPS

Desempenhar o processo de unistall do Modulo.

EXPECTED BEHAVIOUR

Desinstalação limpa.

ACTUAL BEHAVIOUR

O módulo gera uma grande quantidade de atributos em produtos e clientes, além de diversas tabelas, após a desinstalação há diversas exceptions gerada.

ENVIRONMENT

Magento 2.4

LOGS / STACK TRACE

erro-pagarme

Erro ao editar cliente no admin

Quando vou editar um cliente no admin e existe alguma exception (ele não preencheu o CPF por exemplo), o código cai no Exception do file AdminCustomerBeforeSave.php.

O problema é que no catch da linha 48, tem esse código:
$log->info(print_r($exception->errors, true));
que retorna o seguinte erro nos logs
main.CRITICAL: Exception message: Notice: Undefined property: Exception::$errors in vendor/mundipagg/mundipagg-magento2-module/Observer/AdminCustomerBeforeSave.php on line 51

Quando substitui esse $exception->errors por $exception->getMessage(), por exemplo, funciona.

Podem verificar por favor?

InvalidArgumentException: Por favor digite um e-mail de cliente

Passos

  1. Adicionei o produto no carrinho
  2. Fui para o checkout e preenchi o e-mail e todos os campos de endereço
  3. Finalizei como GUEST a compra por cartão de crédito

Comportamento Esperado

Tela de sucesso e pedido gravado dentro do painel de vocês e do Magento.

Comportamento Atual

Aparece uma mensagem de erro no servidor, acima das opções de pagamento.

Informações Adicionais

Isso não ocorre na versão 1.2.17 do módulo, acredito que foram os últimos commits que causaram esse erro.

Ambiente

Ubuntu
PHP 7.0.2
Magento 2.1.9
Módulo versão 1.2.20

Logs / Stack trace

2018-05-11T21:33:59+00:00 INFO (6): InvalidArgumentException: Por favor digite um e-mail de cliente. in /home/vcloud/public_html/#######################/vendor/mundipagg/mundipagg-magento2-module/Helper/CustomerCustomAttributesHelper.php:53
Stack trace:
#0 /home/vcloud/public_html/#######################/vendor/mundipagg/mundipagg-magento2-module/Gateway/Transaction/CreditCard/ResourceGateway/Create/RequestBuilder.php(470): MundiPagg\MundiPagg\Helper\CustomerCustomAttributesHelper->setCustomerCustomAttribute(Object(Magento\Customer\Model\Data\Customer), Object(MundiAPILib\Models\GetOrderResponse), '0')
#1 /home/vcloud/public_html/#######################/vendor/mundipagg/mundipagg-magento2-module/Gateway/Transaction/CreditCard/ResourceGateway/Create/RequestBuilder.php(108): MundiPagg\MundiPagg\Gateway\Transaction\CreditCard\ResourceGateway\Create\RequestBuilder->createNewRequest(Object(MundiPagg\MundiPagg\Gateway\Transaction\CreditCard\ResourceGateway\Create\RequestDataProvider))
#2 /home/vcloud/public_html/#######################/vendor/mundipagg/mundipagg-magento2-module/Gateway/Transaction/Base/Command/AbstractApiCommand.php(48): MundiPagg\MundiPagg\Gateway\Transaction\CreditCard\ResourceGateway\Create\RequestBuilder->build(Array)
#3 /home/vcloud/public_html/#######################/vendor/magento/module-payment/Model/Method/Adapter.php(530): MundiPagg\MundiPagg\Gateway\Transaction\Base\Command\AbstractApiCommand->execute(Array)
#4 /home/vcloud/public_html/#######################/vendor/magento/module-payment/Model/Method/Adapter.php(432): Magento\Payment\Model\Method\Adapter->executeCommand('authorize', Array)
#5 /home/vcloud/public_html/#######################/vendor/magento/module-sales/Model/Order/Payment/Operations/AuthorizeOperation.php(45): Magento\Payment\Model\Method\Adapter->authorize(Object(Magento\Sales\Model\Order\Payment\Interceptor), 20.1)
#6 /home/vcloud/public_html/#######################/vendor/magento/module-sales/Model/Order/Payment/Processor.php(72): Magento\Sales\Model\Order\Payment\Operations\AuthorizeOperation->authorize(Object(Magento\Sales\Model\Order\Payment\Interceptor), true, 20.1)
#7 /home/vcloud/public_html/#######################/vendor/magento/module-sales/Model/Order/Payment.php(1054): Magento\Sales\Model\Order\Payment\Processor->authorize(Object(Magento\Sales\Model\Order\Payment\Interceptor), true, 20.1)
#8 /home/vcloud/public_html/#######################/vendor/mundipagg/mundipagg-magento2-module/Gateway/Transaction/Base/Command/InitializeCommand.php(42): Magento\Sales\Model\Order\Payment->authorize(true, 20.1)
#9 /home/vcloud/public_html/#######################/vendor/magento/module-payment/Model/Method/Adapter.php(530): MundiPagg\MundiPagg\Gateway\Transaction\Base\Command\InitializeCommand->execute(Array)
#10 /home/vcloud/public_html/#######################/vendor/magento/module-payment/Model/Method/Adapter.php(637): Magento\Payment\Model\Method\Adapter->executeCommand('initialize', Array)
#11 /home/vcloud/public_html/#######################/vendor/magento/module-sales/Model/Order/Payment.php(340): Magento\Payment\Model\Method\Adapter->initialize('authorize_captu...', Object(Magento\Framework\DataObject))
#12 /home/vcloud/public_html/#######################/vendor/magento/module-sales/Model/Order.php(858): Magento\Sales\Model\Order\Payment->place()
#13 /home/vcloud/public_html/#######################/vendor/magento/module-sales/Model/Order.php(1047): Magento\Sales\Model\Order->_placePayment()
#14 /home/vcloud/public_html/#######################/vendor/magento/module-sales/Model/Service/OrderService.php(190): Magento\Sales\Model\Order->place()
#15 /home/vcloud/public_html/#######################/vendor/magento/module-quote/Model/QuoteManagement.php(488): Magento\Sales\Model\Service\OrderService->place(Object(Magento\Sales\Model\Order))
#16 /home/vcloud/public_html/#######################/vendor/magento/module-quote/Model/QuoteManagement.php(391): Magento\Quote\Model\QuoteManagement->submitQuote(Object(Magento\Quote\Model\Quote), Array)
#17 /home/vcloud/public_html/#######################/vendor/magento/module-quote/Model/QuoteManagement.php(349): Magento\Quote\Model\QuoteManagement->submit(Object(Magento\Quote\Model\Quote))
#18 /home/vcloud/public_html/#######################/vendor/magento/module-quote/Model/GuestCart/GuestCartManagement.php(87): Magento\Quote\Model\QuoteManagement->placeOrder('538', NULL)
#19 /home/vcloud/public_html/#######################/vendor/magento/module-checkout/Model/GuestPaymentInformationManagement.php(90): Magento\Quote\Model\GuestCart\GuestCartManagement->placeOrder('2e1d9a265c8c321...')
#20 [internal function]: Magento\Checkout\Model\GuestPaymentInformationManagement->savePaymentInformationAndPlaceOrder('2e1d9a265c8c321...', 'ariel@mestremag...', Object(Magento\Quote\Model\Quote\Payment), Object(Magento\Quote\Model\Quote\Address))
#21 /home/vcloud/public_html/#######################/vendor/magento/module-webapi/Controller/Rest.php(307): call_user_func_array(Array, Array)
#22 /home/vcloud/public_html/#######################/vendor/magento/module-webapi/Controller/Rest.php(216): Magento\Webapi\Controller\Rest->processApiRequest()
#23 /home/vcloud/public_html/#######################/var/generation/Magento/Webapi/Controller/Rest/Interceptor.php(24): Magento\Webapi\Controller\Rest->dispatch(Object(Magento\Framework\App\Request\Http))
#24 /home/vcloud/public_html/#######################/vendor/magento/framework/App/Http.php(135): Magento\Webapi\Controller\Rest\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#25 /home/vcloud/public_html/#######################/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
#26 /home/vcloud/public_html/#######################/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#27 {main}

erro durante compile

Compilation was started.

Details:

Proxies code generation... 0/7 [>---------------------------] 0% 1 sec 40.0 MiProxies code generation... 1/7 [====>-----------------------] 14% 2 secs 44.0 MRepositories code generation... 1/7 [====>-----------------------] 14% 2 secs 4Repositories code generation... 2/7 [========>-------------------] 28% 2 mins 1Service data attributes generation... 2/7 [========>-------------------] 28% 2 Service data attributes generation... 3/7 [============>---------------] 42% 2 Application code generator... 3/7 [============>---------------] 42% 2 mins 138Application code generator... 4/7 [================>-----------] 57% 2 mins 158Interceptors generation... 4/7 [================>-----------] 57% 2 mins 158.0 Interceptors generation... 5/7 [====================>-------] 71% 3 mins 176.0 Area configuration aggregation... 5/7 [====================>-------] 71% 3 mins 176.0 MiB

[ReflectionException] Class MundiPagg\MundiPagg\Gateway\Transaction\TwoCreditCard\Resource\Refund \CreditCardTransaction does not exist

erro arredontamento de parcela do primeiro cartao

PRIMEIRO CARTAO:
"amount": 5193765, (*AQUI PARA SE 5193)
"status": "not_authorized",
"success": false,
"installments": 4,

SEGUNDO CARTAO:

"amount": 2110,
"status": "authorized_pending_capture",
"success": true,
"installments": 4,

Swagger returns: The "array" class doesn't exist and the namespace must be specified. Verify and try again.

Status

BUG REPORT

Steps

  1. In a Vanilla version of Magento 2.x install Mundipagg Magento 2 module
  2. Access the Swagger doc for Magento http://dev.magento/swagger
  3. The error "The "array" class doesn't exist and the namespace must be specified. Verify and try again." is shown

Expected behaviour

Access the swagger for Rest Api doc

Actual behaviour

There's an error with some method doc in Interfaces that is declaring array while the Magento doesn't allow that type (should be changed to mixed[])

Environment

Magento 2.2.3

Mundipagg Magento 2 Module: 1.8.11

Logs / Stack trace

Screenshot at Oct 10 16-42-58

Erro criação de pedido pelo Admin

Olá pessoal, tudo bem?
Achei um problema com o módulo na hora de criar um pedido pelo admin.
Creio que o módulo de vocês não deve permitir mesmo criação usando ele via admin mas tem uma parte que está travando os outros métodos de pagamento.
No arquivo PaymentMethodAvailable.php a function getRecurrenceProducts está retornando um erro quando vou criar um pedido pelo admin.

Exception #0 (Exception): Warning: Invalid argument supplied for foreach() in /vendor/mundipagg/mundipagg-magento2-module/Observer/PaymentMethodAvailable.php on line 143

Eu adicionei apenas uma verificação na variável $items e resolveu.

Podem verificar?

Obrigado!

Sobre a recorrencia

Recorrência

Opa! Estou precisando de algumas informações pra fechar o escopo de um projeto e eu gostaria caso possível de saber essas informações abaixo.

  • Existe algum prazo para essa feature ser lançada na branch principal?
  • O desenvolvimento dessa funcionalidade está sendo finalizada?

Can't Place Order using Boleto

Status

BUG REPORT / TASK

Checklist

Add checklist if this is a task

Steps

  1. Login
  2. Add product to cart
  3. Go to Checkout
  4. Select shipping method
  5. Select Billet and Place Order

Expected behaviour

Place Order Successfully.

Actual behaviour

the store gives me an error saying that a server error occurred

Environment

PHP 7.0
Magento 2.2.5 CE

Logs / Stack trace

2018-07-09T09:39:41+00:00 INFO (6): {
    "items": [
        {
            "amount": 10900,
            "description": " Camiseta Masculina !todeolho! Clara leff-Cinza-M",
            "quantity": 1,
            "code": " Camiseta Masculina !todeolho! Clara leff-Cinza-M"
        }
    ],
    "customer": {
        "name": "Bhavik  Koradiya",
        "email": "[email protected]",
        "document": "42640059149",
        "type": "individual",
        "address": {
            "street": "Rua Orqu\u00eddea 673",
            "number": "Rua Orqu\u00eddea 673",
            "complement": "Rua Orqu\u00eddea 673",
            "zip_code": "35660403",
            "neighborhood": "Rua Orqu\u00eddea 673",
            "city": "Par\u00e1 de Minas",
            "state": "MG",
            "country": "BR"
        }
    },
    "payments": [
        {
            "amount": 10900,
            "payment_method": "boleto",
            "capture": false,
            "boleto": {
                "bank": "033",
                "instructions": null,
                "due_at": "2018-07-14T00:00:00Z"
            }
        }
    ],
    "code": "000001059",
    "customer_id": null,
    "shipping": {
        "amount": 0,
        "description": ".",
        "address": {
            "street": "Rua Orqu\u00eddea 673",
            "number": "Rua Orqu\u00eddea 673",
            "complement": "Rua Orqu\u00eddea 673",
            "zip_code": "35660403",
            "neighborhood": "Rua Orqu\u00eddea 673",
            "city": "Par\u00e1 de Minas",
            "state": "MG",
            "country": "BR"
        }
    },
    "metadata": {
        "module_name": "Magento 2",
        "module_version": "1.2.24"
    },
    "closed": true,
    "antifraud_enabled": null,
    "ip": "122.170.99.156",
    "session_id": null,
    "location": null,
    "device": null,
    "currency": null
}
2018-07-09T09:39:42+00:00 INFO (6): {}

Nothing show me error in logs

Erro com versõe do PHP

Status

BUG REPORT

Expected behaviour

Instalar Via Composer

Actual behaviour

Nos requisitos do módulo estão especificados as versões mínimas do PHP como sendo >= 5.6
Meu sistema tem o PHP 7.2.12 e recebo a mensagem do composer:
Package mundipagg/mundipagg-magento2-module at version has a PHP requirement incompatible with your PHP version (7.2.12)

Environment

  • PHP 7.2.12
    Magento 2.3.0

Logs / Stack trace

Package mundipagg/mundipagg-magento2-module at version  has a PHP requirement incompatible with your PHP version (7.2.12)

website_id é retornado ao invés do store_id

Descrição

Durante o desenvolvimento de um projeto aqui na Hibrido, notamos que não estavamos conseguindo salvar as configurações do modulo em uma storeview especifica. Um erro aparecia depois de tentar salvars as confs com a seguinte mensagem "The store that was requested wasn't found. Verify the store and try again.". Porem, essa store existia no banco e o erro só acontecia quando se tentava salvar as configurações do modulo da mundipagg.

Solução

No arquivo
vendor/mundipagg/mundipagg-magento2-module/Concrete/Magento2CoreSetup.php
Existe um metodo chamado getCurrentStoreId, e nele, existe uma validação para verificar se o escopo da store é "website", "stores" ou "default". Contudo, durante a validação do escopo "stores" o valor retornado pelo IF é o website_id, sendo que o esperado seria o "store_id"

Conclusão

Consegui solucionar o problema modificando o valor que é retornado. Posso abrir um pull request para resolver isso no modulo ?

HolderDocumentNumber is Required

Olá,
Estou usando a versão 2.2.4-beta do módulo e estou com problemas no Voucher.
Os erros anteriores sumiram mas agora ele dá o seguinte erro no dash da mundipagg:

HolderDocumentNumber is Required

Quando olho no log, o "document" está preenchido mas o "holder_document" realmente está vazio.

Estou testando com cartões reais da VR e Sodexo.

Outra coisa que reparei é que aparentemente o Voucher está usando o file CreateCreditCardPaymentRequest ao invés do CreateVoucherPaymentRequest
Mudei coisas nos dois e somente apareceu no voucher quando utilizei o CreateCreditCardPaymentRequest

Obrigado!

Error Uncaught TypeError: Cannot set property 'messageList' of undefined in Checkout

Status

BUG

Steps

  1. Install Version 2.4.15-beta in a Magento 2.4
  2. Add a Product and go to checkout
  3. The error is displayed on the console

Expected behaviour

No errors are displayed, and the checkout is loading.

Actual behaviour

Checkout keeps loading endlessly

Environment

Magento Version: 2.4
PHP Version: 7.4.8

Logs / Stack trace

Uncaught TypeError: Cannot set property 'messageList' of undefined

Error Print

Captura de Tela 2020-10-02 às 16 58 03

Recurso de salvamento de cartão de crédito no perfil do cliente

Tags

SAVED CREDIT CARDS

Descrição

Recentemente, a loja que atendemos e possuem o módulo da mundipagg para gerenciar os pagamentos solicitou a implementação de um menu onde posso verificar os cartões de créditos salvos pelo usuário (cartões que já foram usados em uma compra), precisamos implementar esse recurso no site.

O que tentamos fazer para implementar o recurso

Bom, verifiquei nas configurações do módulo da Mundipagg, onde possui uma opção Enable Saved Credit-Cards, ativei esta opção. Logo, reindexei o magento e limpei a cache, caso isso seja algum obstáculo para implementar a alteração de fato.
Fiz uma compra de teste no site, onde utilizei o cartão de crédito conforme descrito no Cenário 1 do simulador de cartões https://docs.mundipagg.com/docs/simulador-de-cartão-de-crédito.
Fiz esse teste e conferi nas tabelas mundipagg_mundipagg_cards e mundipagg_module_core_saved_card, contudo a tabela continua zerada.

Na loja, utilizamos a versão 2.3.3 do Magento.

Gostaria de saber, preciso fazer alguma outra configuração no módulo para este recurso funcionar? Ocorre o salvamento do cartão normalmente quando utilizo o simulador de cartões?

Venda não finaliza no cartão de crédito

Olá, boa tarde.
Estamos utilizando a versão BETA do módulo pois precisamos da funcionalidade de recorrência, porém ao tentar finalizar a compra usando CARTÃO DE CRÉDITO, após preencher os dados referentes ao cartão e clicar no botão para "FINALIZAR A COMPRA" uma mensagem é apresentada informando "BANDEIRA INVÁLIDA" e a venda não conclui.

O teste usando o BOLETO BANCÀRIO está funcionando corretamente.

Poderiam nos ajudar?

Obrigado!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.