Giter VIP home page Giter VIP logo

moip's Introduction

The module integrates a Magento 2 based webstore with the Moip payment service (Brazil).
The module is free and open source.

Screenshots

1. Bank card payments

1.1. The frontend payment form

1.1.1. A payment with a Hipercard bank card

1.1.2. A payment with an «Itaucard 2.0 Nacional Hiper» bank card

1.1.3. A payment with an Elo bank card

1.2. The «Payment Information» block

1.2.1. Frontend (inside the customer's account)

1.2.2. Backend

2. Boleto bancário

2.1. A printed boleto slip

2.2. The «Payment Information» block

2.2.1. Frontend, inside the customer's account

2.2.2. Frontend, the «checkout success» page

3. The backend orders grid

Settings

Are you an international shop looking for a Latin American payment solution?

Please read 3 simple facts about the Brazilian eCommerce market, and how my extension fit in it.

How to install

Hire me in Upwork, and I will:

  • install and configure the module properly on your website
  • answer your questions
  • solve compatiblity problems with third-party checkout, shipping, marketing modules
  • implement new features you need

2. Self-installation

bin/magento maintenance:enable
rm -f composer.lock
composer clear-cache
composer require mage2pro/moip:* --ignore-platform-req=php
bin/magento setup:upgrade
bin/magento cache:enable
rm -rf var/di var/generation generated/code
bin/magento setup:di:compile
rm -rf pub/static/*
bin/magento setup:static-content:deploy -f pt_BR en_US <additional locales>
bin/magento maintenance:disable

How to update

bin/magento maintenance:enable
composer remove mage2pro/moip
rm -f composer.lock
composer clear-cache
composer require mage2pro/moip:* --ignore-platform-req=php
bin/magento setup:upgrade
bin/magento cache:enable
rm -rf var/di var/generation generated/code
bin/magento setup:di:compile
rm -rf pub/static/*
bin/magento setup:static-content:deploy -f pt_BR en_US <additional locales>
bin/magento maintenance:disable

moip's People

Contributors

dmitrii-fediuk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

katiakweb

moip's Issues

The GET «https://sandbox.moip.com.br/v2/preferences/notifications» API endpoint is down today (2017-10-19): «502 Proxy Error: The proxy server received an invalid response from an upstream server». We should handle this in a proper way.

The API endpoint is decribed here: https://dev.moip.com.br/v2.0/reference#listar-todas-preferencias-de-notificacao
It had been worked for last months, but today the Moip API server responds:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>502 Proxy Error</title>
</head><body>
<h1>Proxy Error</h1>
<p>The proxy server received an invalid
response from an upstream server.<br />
The proxy server could not handle the request <em><a href="/v2/preferences/notifications">GET&nbsp;/v2/preferences/notifications</a></em>.<p>
Reason: <strong>Error reading from remote server</strong></p></p>
</body></html>

For now, it leads to the following exception in my extension:

#0 \vendor\mage2pro\core\API\Client.php(227): df_error_create('The \xC2\xABpreferenc...')
#1 \vendor\mage2pro\core\API\Client.php(87): Df\API\Client->_p()
#2 \vendor\mage2pro\core\Core\lib\cache.php(103): Df\API\Client->Df\API\{closure}()
#3 \vendor\mage2pro\core\Core\lib\cache.php(296): {closure}('94bfacacce31314...')
#4 \vendor\mage2pro\core\Core\lib\cache.php(107): dfcf(Object(Closure), Array, Array)
#5 \vendor\mage2pro\core\API\Client.php(87): df_cache_get_simple('0=>https://sand...', Object(Closure), Array)
#6 \vendor\mage2pro\core\API\Facade.php(124): Df\API\Client->p()
#7 \vendor\mage2pro\core\API\Facade.php(26): Df\API\Facade->p()
#8 \vendor\mage2pro\moip\API\Facade\Notification.php(40): Df\API\Facade->all()
#9 \vendor\mage2pro\moip\FE\Webhooks.php(65): Dfe\Moip\API\Facade\Notification->targets()
#10 \vendor\mage2pro\core\Framework\Plugin\Data\Form\Element\AbstractElement.php(96): Dfe\Moip\FE\Webhooks->onFormInitialized()
#11 \generated\code\Df\Framework\Plugin\Data\Form\Element\AbstractElement\Interceptor.php(63): Df\Framework\Plugin\Data\Form\Element\AbstractElement->afterSetForm(Object(Dfe\Moip\FE\Webhooks\Interceptor), Object(Dfe\Moip\FE\Webhooks\Interceptor))

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.