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
/** | |
* WC_WooMercadoPago_PreferenceAbstract.php | |
*/ | |
// Declare the taxes variable at the beginning of the file | |
protected $taxes; | |
// Set the value on constructor | |
$this->taxes = 500; |
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
<?php | |
/** | |
* 2007-2020 PrestaShop | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Academic Free License (AFL 3.0) | |
* that is bundled with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/afl-3.0.php |
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
<?php | |
/** | |
* 2007-2020 PrestaShop | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Academic Free License (AFL 3.0) | |
* that is bundled with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/afl-3.0.php |
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
<?php | |
namespace MercadoPago\Core\Model\CustomBankTransfer; | |
/** | |
* Class Payment | |
* | |
* @package MercadoPago\Core\Model\CustomBankTransfer | |
*/ | |
class Payment |
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
/* | |
* MPv1 | |
* Handlers Form Mercado Pago v1 | |
* @version 1.0.4 | |
*/ | |
(function () { | |
var MPv1 = { | |
debug: false, |
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
<?php | |
namespace MercadoPago\Core\Helper; | |
use Magento\Framework\View\LayoutFactory; | |
/** | |
* Class Data | |
* | |
* @package MercadoPago\Core\Helper |
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
const selectShippingMethod: ShippingMethodsDto = shippingMethods.find( | |
shippingRate => shippingRate.id === shippingLine?.id, | |
); | |
if ((shippingMethods.length > 0 && !selectShippingMethod) || (shippingMethods.length === 0 && shippingLine)) { | |
throw new InvalidShippingRatingError(); | |
} | |
if (selectShippingMethod) { | |
shippingLine.price = Number(selectShippingMethod?.price || 0.0); |
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
/** | |
* Create the payment states | |
* | |
* @return bool | |
* @throws PrestaShopDatabaseException | |
* @throws PrestaShopException | |
*/ | |
public function createPaymentStates() | |
{ | |
$order_states = array( |