-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f047b95
Showing
19 changed files
with
559 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# 2017-03-09 | ||
# https://github.com/isaacs/github/issues/170#issuecomment-150489692 | ||
root = true | ||
[*] | ||
indent_size = 4 | ||
indent_style = tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
// 2017-04-24 | ||
namespace Dfe\MercadoPago; | ||
use Magento\Sales\Model\Order\Payment\Transaction as T; | ||
/** @method Settings s() */ | ||
final class Method extends \Df\StripeClone\Method { | ||
/** | ||
* 2017-04-24 | ||
* @override | ||
* @see \Df\Payment\Method::amountLimits() | ||
* @used-by \Df\Payment\Method::isAvailable() | ||
* @return null | ||
*/ | ||
protected function amountLimits() {return null;} | ||
|
||
/** | ||
* 2017-04-24 | ||
* @override | ||
* @see \Df\StripeClone\Method::transUrlBase() | ||
* @used-by \Df\StripeClone\Method::transUrl() | ||
* @param T $t | ||
* @return string | ||
*/ | ||
protected function transUrlBase(T $t) {return '';} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
It is an alternative MercadoPago payment module for Magento 2 you can get fast support, free installation service and customizations for. | ||
[MercadoPago](https://www.mercadopago.com) works in Argentina, Brasil, Chile, Mexico, Venezuela, Colombia, Uruguay, Peru. | ||
|
||
## How to buy | ||
The extension is not released yet, so there is no way to buy it just now. | ||
The extension will be released before 2017-05-24. | ||
|
||
## How to install | ||
### 1. Free installation service | ||
Just order my [free installation service](https://mage2.pro/t/3585). | ||
|
||
### 2. Self-installation | ||
``` | ||
composer require mage2pro/mercadopago:* | ||
bin/magento setup:upgrade | ||
rm -rf pub/static/* && bin/magento setup:static-content:deploy <locale, e.g.: pt_BR> | ||
rm -rf var/di var/generation && bin/magento setup:di:compile | ||
``` | ||
If you have some problems while executing these commands, then check the [detailed instruction](https://mage2.pro/t/263). | ||
|
||
## Licensing | ||
It is a paid extension, not free. | ||
You can use it for free for the testing puproses only. | ||
Please read the [testing policy](https://mage2.pro/t/2590) before installation. | ||
|
||
## Support | ||
- [The extension's **forum** branch](https://mage2.pro/c/extensions/mercadopago). | ||
- [Where and how to report a Mage2.PRO extension's issue?](https://mage2.pro/t/2034) | ||
- I also provide a **[generic Magento 2 support](https://mage2.pro/t/755)** and [Magento 2 installation service](https://mage2.pro/t/748). | ||
|
||
## Want to be notified about the extension's updates? | ||
- [Subscribe](https://mage2.pro/t/2540) to the extension's [forum branch](https://mage2.pro/c/extensions/mercadopago). | ||
- Subscribe to my [Twitter](https://twitter.com/mage2_pro) and [YouTube](https://www.youtube.com/channel/UCvlDAZuj01_b92pzRi69LeQ) channels. | ||
|
||
## Need a new feature? | ||
I provide the [**customization service**](https://mage2.pro/t/2020) for my payment extensions. | ||
|
||
## Need another payment extension for Magento 2? | ||
|
||
- «[**2Checkout**](https://mage2.pro/c/extensions/2checkout)» payment extension. | ||
- «[**歐付寶 allPay**](https://mage2.pro/c/extensions/allpay)» payment extension (Taiwan). | ||
- «[**Checkout.com**](https://mage2.pro/c/extensions/checkout-com)» payment extension. | ||
- «[**Dragonpay**](https://mage2.pro/c/extensions/dragonpay)» payment extension (Philippines). | ||
- «[**Ginger Payments**](https://mage2.pro/c/extensions/ginger-payments)» extension (the Netherlands, Belgium). | ||
- «[**iPay88**](https://mage2.pro/c/extensions/ipay88)» payment extension (Malaysia, Indonesia, Philippines, Thailand, Singapore, China). | ||
- «[**iyzico**](https://mage2.pro/c/extensions/iyzico)» payment extension (Turkey). | ||
- «[**Kassa Compleet**](https://mage2.pro/c/extensions/kassa-compleet)» payment extension by ING Bank (the Netherlands). | ||
- «[**Klarna**](https://mage2.pro/c/extensions/klarna)» payment extension (Austria, Denmark, Finland, Germany, Norway, Sweden). | ||
- «[**MercadoPago**](https://mage2.pro/c/extensions/mercadopago)» payment extension (Argentina, Brasil, Chile, Mexico, Venezuela, Colombia, Uruguay, Peru). | ||
- «[**Moip**](https://mage2.pro/c/extensions/moip)» payment extension (Brazil). | ||
- «[**mPAY24**](https://mage2.pro/c/extensions/mpay24)» payment extension (Austria, Germany). | ||
- «[**Omise**](https://mage2.pro/c/extensions/omise)» payment extension (Thailand, Japan). | ||
- «[**Paymill**](https://mage2.pro/c/extensions/paymill)» payment extension (the European Union). | ||
- «[**PayPal**](https://mage2.pro/c/extensions/paypal)»: an alternative module you can get fast support and customizations for. | ||
- «[**Paystation**](https://mage2.pro/c/extensions/paystation)» payment extension (New Zealand). | ||
- «[**QIWI Wallet**](https://mage2.pro/c/extensions/qiwi)» (QIWI Кошелёк) payment extension (Russia). | ||
- «[**Robokassa**](https://mage2.pro/c/extensions/robokassa)» payment extension (Russia). | ||
- «[**SecurePay**](https://mage2.pro/c/extensions/securepay)» payment extension (Australia). | ||
- «[**Spryng**](https://mage2.pro/c/extensions/spryng)» payment extension (the European Union). | ||
- «[**Square**](https://mage2.pro/c/extensions/square)» payment extension (USA, Canada). | ||
- «[**Stripe**](https://mage2.pro/c/extensions/stripe)» payment extension. | ||
- «[**Tinkoff Bank**](https://mage2.pro/c/extensions/tinkoff)» (Тинькофф Банк) payment extension (Russia). | ||
- «[**Yandex.Kassa**](https://mage2.pro/c/extensions/yandex-kassa)» (as known as Yandex.Checkout, Яндекс.Касса) payment extension (Russia, Armenia, Azerbaijan, Belarus, Georgia, Kazakhstan, Kyrgyzstan, Latvia, Moldova, Tajikistan). | ||
|
||
## See also my other Magento 2 extensions: | ||
|
||
- «[**Price Format**](https://mage2.pro/c/extensions/price-format)» (set a custom display format for the prices and other currency values: discounts, taxes, sales amounts). | ||
- «[**Sales Documents Numeration**](https://mage2.pro/c/extensions/sales-documents-numeration)» (use a custom numeration for the sales documents: orders, invoices, shipments, and credit memos). | ||
- «[**Login with Amazon**](https://mage2.pro/c/extensions/amazon-login)» (a single sign-on extension). | ||
- «[**Backend Login with Google Account**](https://mage2.pro/c/extensions/google-backend-login)» (a single sign-on extension for the Magento 2 backend). | ||
- «[**Facebook Login**](https://mage2.pro/c/extensions/facebook-login)» (a single sign-on extension). | ||
- «[**Blackbaud NetCommunity**](https://mage2.pro/c/extensions/blackbaud-netcommunity)» (an integration with an online fundraising software). | ||
- «[**Markdown Editor**](https://mage2.pro/c/extensions/markdown)» (an alternative content editor for the Magento 2 backend). | ||
- «[**Twitter Timeline**](https://mage2.pro/c/extensions/twitter-timeline)» (shows your latest tweets in your store's frontend sidebar). | ||
- «[**Facebook Like & Share**](https://mage2.pro/c/extensions/facebook-like)» (shows the Facebook's «Like» and «Share» buttons on the frontend product pages). | ||
- «[**Salesforce**](https://mage2.pro/c/extensions/salesforce)» (an integration with the CRM software). | ||
- «[**Microsoft Dynamics 365**](https://mage2.pro/c/extensions/dynamics365)» (an integration with the ERP/CRM software). | ||
|
||
## Need a custom payment extension? | ||
I provide a [custom payment gateway integration service](https://mage2.pro/t/917). | ||
|
||
## Want to get the full rights on my extension? | ||
It is possible: the price depends on a extension and starts from $6.990. | ||
You will get free lifetime support, updates, and installation service for all your clients. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
// 2017-04-24 | ||
namespace Dfe\MercadoPago; | ||
/** @method static Settings s() */ | ||
final class Settings extends \Df\StripeClone\Settings {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
namespace Dfe\MercadoPago\T; | ||
// 2017-04-24 | ||
final class Basic extends TestCase { | ||
/** @test 2017-04-24 */ | ||
function t01() {echo df_dump([]);} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
namespace Dfe\MercadoPago\T; | ||
/** | ||
* 2017-04-20 | ||
* @see \Dfe\MercadoPago\T\Basic | ||
* @method \Dfe\MercadoPago\Settings s() | ||
*/ | ||
abstract class TestCase extends \Df\Payment\TestCase {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version='1.0' encoding='utf-8' ?> | ||
<phpunit | ||
bootstrap='../../../../dev/tests/unit/framework/bootstrap.php' | ||
convertErrorsToExceptions="false" | ||
convertNoticesToExceptions="false" | ||
convertWarningsToExceptions="false" | ||
> | ||
<testsuite name='MercadoPago'> | ||
<directory suffix='.php'>.</directory> | ||
</testsuite> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "mage2pro/mercadopago" | ||
,"version": "0.0.1" | ||
,"description": "The «MercadoPago» payment extension for Magento 2." | ||
,"type": "magento2-module" | ||
,"homepage": "https://mage2.pro/c/extensions/mercadopago" | ||
,"license": "proprietary" | ||
,"authors": [{ | ||
"name": "Dmitry Fedyuk", | ||
"email": "admin@mage2.pro", | ||
"homepage": "https://mage2.pro/users/dmitry_fedyuk", | ||
"role": "Developer" | ||
}] | ||
,"require": {"mage2pro/core": ">=2.5.23", "mercadopago/sdk": ">=0.5.2"} | ||
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\MercadoPago\\": ""}} | ||
,"keywords": [ | ||
"API" | ||
,"Bank card" | ||
,"Argentina", "Brasil", "Chile", "Mexico", "Venezuela", "Colombia", "Uruguay", "Peru" | ||
,"Credit card" | ||
,"eCommerce" | ||
,"Magento" | ||
,"Magento 2" | ||
,"Magento extension" | ||
,"MercadoPago" | ||
,"Payment" | ||
,"Payment authorization" | ||
,"Payment integration" | ||
,"Payment gateway" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,189 @@ | ||
<?xml version='1.0'?> | ||
<config | ||
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' | ||
xsi:noNamespaceSchemaLocation='urn:magento:module:Df_Config:etc/system_file.xsd' | ||
> | ||
<system> | ||
<section id='df_payment'> | ||
<!-- | ||
2015-09-25 | ||
1-я и 2-я цифры sortOrder соответствуют порядковому номеру первой буквы модуля | ||
в английском алфавите: https://en.wikipedia.org/wiki/English_alphabet | ||
3-я и 4-я цифры sortOrder соответствуют порядковому номеру второй буквы модуля | ||
в английском алфавите. | ||
--> | ||
<group | ||
id='mercado_pago' | ||
translate='label' | ||
type='text' | ||
sortOrder='1305' | ||
showInDefault='1' | ||
showInWebsite='1' | ||
showInStore='1' | ||
> | ||
<label>MercadoPago</label> | ||
<dfExtension>Dfe_MercadoPago</dfExtension> | ||
<frontend_model>Df\Config\Fieldset</frontend_model> | ||
<field | ||
id='enable' | ||
translate='label' | ||
type='Df\Framework\Form\Element\Checkbox' | ||
sortOrder='1' | ||
showInDefault='1' | ||
showInWebsite='1' | ||
showInStore='1' | ||
> | ||
<label>Enable?</label> | ||
<backend_model>Df\Config\Backend\Checkbox</backend_model> | ||
<comment><![CDATA[Enable the «<a href='https://mage2.pro/c/extensions/mercadopago' target='_blank'>MercadoPago</a>» payment extension?]]></comment> | ||
</field> | ||
<field | ||
id='title' | ||
translate='label' | ||
type='text' | ||
sortOrder='2' | ||
showInDefault='1' | ||
showInWebsite='1' | ||
showInStore='1' | ||
> | ||
<label>Title</label> | ||
<comment><![CDATA[It is shown on the checkout screen.]]></comment> | ||
<depends><field id='enable'>1</field></depends> | ||
<validate>required-entry</validate> | ||
</field> | ||
<field | ||
id='test' | ||
translate='label' | ||
type='Df\Framework\Form\Element\Checkbox' | ||
sortOrder='3' | ||
showInDefault='1' | ||
showInWebsite='1' | ||
showInStore='1' | ||
> | ||
<label>Sandbox Mode?</label> | ||
<backend_model>Df\Config\Backend\Checkbox</backend_model> | ||
<comment><![CDATA[]]></comment> | ||
<depends><field id='enable'>1</field></depends> | ||
</field> | ||
<field | ||
id='actionForNew' | ||
translate='label' | ||
type='select' | ||
sortOrder='11' | ||
showInDefault='1' | ||
showInWebsite='1' | ||
showInStore='1' | ||
> | ||
<label>Payment Action for a New Customer</label> | ||
<source_model>Df\Payment\Source\ACR</source_model> | ||
<comment><![CDATA[A customer is regarded as <b>new</b>, if he does not have any order in the «Completed» or «Processing» state.]]></comment> | ||
<depends><field id='enable'>1</field></depends> | ||
</field> | ||
<field | ||
id='actionForReturned' | ||
translate='label' | ||
type='select' | ||
sortOrder='12' | ||
showInDefault='1' | ||
showInWebsite='1' | ||
showInStore='1' | ||
> | ||
<label>Payment Action for a Returned Customer</label> | ||
<source_model>Df\Payment\Source\ACR</source_model> | ||
<depends><field id='enable'>1</field></depends> | ||
</field> | ||
<field | ||
id='description' | ||
translate='label' | ||
type='textarea' | ||
sortOrder='13' | ||
showInDefault='1' | ||
showInWebsite='1' | ||
showInStore='1' | ||
> | ||
<label>Description</label> | ||
<comment><![CDATA[It will be displayed in the MercadoPago web interface alongside the payment.<br/>You can use <a href='https://mage2.pro/t/1834' target='_blank'>variables</a> in the description.]]></comment> | ||
<depends><field id='enable'>1</field></depends> | ||
</field> | ||
<field | ||
id='requireBillingAddress' | ||
translate='label' | ||
type='Df\Framework\Form\Element\Checkbox' | ||
sortOrder='14' | ||
showInDefault='1' | ||
showInWebsite='1' | ||
showInStore='1' | ||
> | ||
<label>Require the billing address?</label> | ||
<backend_model>Df\Config\Backend\Checkbox</backend_model> | ||
<comment><![CDATA[If <b>checked</b>, Magento will require the billing address. It is the default Magento behaviour.<br/>If <b>unchecked</b>, Magento will not require the billing address, and even will not ask for it.]]></comment> | ||
<depends><field id='enable'>1</field></depends> | ||
</field> | ||
<field | ||
id='min_order_total' | ||
translate='label' | ||
type='text' | ||
sortOrder='15' | ||
showInDefault='1' | ||
showInWebsite='1' | ||
showInStore='1' | ||
> | ||
<label>Minimum Order Total</label> | ||
<comment><![CDATA[]]></comment> | ||
<validate>validate-number validate-greater-than-zero</validate> | ||
<depends><field id='enable'>1</field></depends> | ||
</field> | ||
<field | ||
id='max_order_total' | ||
translate='label' | ||
type='text' | ||
sortOrder='16' | ||
showInDefault='1' | ||
showInWebsite='1' | ||
showInStore='1' | ||
> | ||
<label>Maximum Order Total</label> | ||
<comment><![CDATA[]]></comment> | ||
<validate>validate-number validate-greater-than-zero</validate> | ||
<depends><field id='enable'>1</field></depends> | ||
</field> | ||
<field | ||
id='country_restriction' | ||
translate='label' | ||
type='select' | ||
sortOrder='17' | ||
showInDefault='1' | ||
showInWebsite='1' | ||
showInStore='1' | ||
> | ||
<label>Country Restriction</label> | ||
<source_model>Df\Config\Source\NoWhiteBlack</source_model> | ||
<depends><field id='enable'>1</field></depends> | ||
</field> | ||
<field | ||
id='countries' | ||
translate='label' | ||
type='Df\Framework\Form\Element\Multiselect' | ||
sortOrder='18' | ||
showInDefault='1' | ||
showInWebsite='1' | ||
showInStore='1' | ||
> | ||
<label>Countries</label> | ||
<source_model>Magento\Directory\Model\Config\Source\Country</source_model> | ||
<can_be_empty>1</can_be_empty> | ||
<depends> | ||
<field id='enable'>1</field> | ||
<!-- | ||
2016-03-08 | ||
«The negative syntax for a backend config field <depends> condition» | ||
https://mage2.pro/t/329 | ||
--> | ||
<field id='country_restriction' negative='1'>0</field> | ||
</depends> | ||
<comment><![CDATA[Customers from which countries can (or can not) use the method?]]></comment> | ||
</field> | ||
</group> | ||
</section> | ||
</system> | ||
</config> |
Oops, something went wrong.