From f7d8ef39089d1c25fa3627cf2f8e083f729b6e34 Mon Sep 17 00:00:00 2001 From: Eneias Ramos de Melo Date: Mon, 13 Jun 2022 19:49:36 -0300 Subject: [PATCH 01/14] =?UTF-8?q?Adicionado=20status=20PAYMENT=5FREVIEW=20?= =?UTF-8?q?para=20novos=20pedidos=20e=20habilitado=20rotina=20de=20checage?= =?UTF-8?q?m=20de=20status=20de=20pedidos=20por=20padr=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../community/RicardoMartins/PagSeguro/Model/Payment/Cc.php | 2 ++ app/code/community/RicardoMartins/PagSeguro/etc/config.xml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/code/community/RicardoMartins/PagSeguro/Model/Payment/Cc.php b/app/code/community/RicardoMartins/PagSeguro/Model/Payment/Cc.php index dec28b3f..9fafe024 100644 --- a/app/code/community/RicardoMartins/PagSeguro/Model/Payment/Cc.php +++ b/app/code/community/RicardoMartins/PagSeguro/Model/Payment/Cc.php @@ -315,6 +315,8 @@ protected function _order($payment, $amount, $ccIdx) { $order = $payment->getOrder(); + $order->setState(Mage_Sales_Model_Order::STATE_PAYMENT_REVIEW, true); + if ($this->isMultiCardPayment($payment)) { $cardData = $payment->getAdditionalInformation("cc" . $ccIdx); $payment->setData("_current_card_index", $ccIdx); diff --git a/app/code/community/RicardoMartins/PagSeguro/etc/config.xml b/app/code/community/RicardoMartins/PagSeguro/etc/config.xml index c95469d3..fd45c97e 100644 --- a/app/code/community/RicardoMartins/PagSeguro/etc/config.xml +++ b/app/code/community/RicardoMartins/PagSeguro/etc/config.xml @@ -194,7 +194,7 @@ 1 1 1 - 0 + 1 0 From 56d70882a36c9d91de07097b4f6f47d8e8c6a9cf Mon Sep 17 00:00:00 2001 From: Eneias Ramos de Melo Date: Mon, 13 Jun 2022 21:21:42 -0300 Subject: [PATCH 02/14] Adicionado status PAID para pedidos que foram pagos --- .../RicardoMartins/PagSeguro/Model/Abstract.php | 3 ++- .../community/RicardoMartins/PagSeguro/etc/config.xml | 1 + .../community/RicardoMartins/PagSeguro/etc/system.xml | 9 +++++++++ app/locale/pt_BR/RicardoMartins_PagSeguro.csv | 3 ++- 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/app/code/community/RicardoMartins/PagSeguro/Model/Abstract.php b/app/code/community/RicardoMartins/PagSeguro/Model/Abstract.php index 3da22a3e..91af3014 100644 --- a/app/code/community/RicardoMartins/PagSeguro/Model/Abstract.php +++ b/app/code/community/RicardoMartins/PagSeguro/Model/Abstract.php @@ -667,7 +667,8 @@ protected function _confirmPayment($payment, $notification) $order->addStatusHistoryComment ( - sprintf('Fatura #%s criada com sucesso.', $invoice->getIncrementId()) + sprintf('Fatura #%s criada com sucesso.', $invoice->getIncrementId()), + Mage::getStoreConfig('payment/rm_pagsecuro_cc/paid_status') ); } } diff --git a/app/code/community/RicardoMartins/PagSeguro/etc/config.xml b/app/code/community/RicardoMartins/PagSeguro/etc/config.xml index fd45c97e..c373f747 100644 --- a/app/code/community/RicardoMartins/PagSeguro/etc/config.xml +++ b/app/code/community/RicardoMartins/PagSeguro/etc/config.xml @@ -164,6 +164,7 @@ 0 Cartão de Crédito - via PagSeguro UOL pending + paid 0 42x20 order diff --git a/app/code/community/RicardoMartins/PagSeguro/etc/system.xml b/app/code/community/RicardoMartins/PagSeguro/etc/system.xml index c1ebdf35..4eac7578 100644 --- a/app/code/community/RicardoMartins/PagSeguro/etc/system.xml +++ b/app/code/community/RicardoMartins/PagSeguro/etc/system.xml @@ -343,6 +343,15 @@ 1 0 + + + select + adminhtml/system_config_source_order_status + 22 + 1 + 1 + 1 + select diff --git a/app/locale/pt_BR/RicardoMartins_PagSeguro.csv b/app/locale/pt_BR/RicardoMartins_PagSeguro.csv index 72993f11..d94fdb38 100644 --- a/app/locale/pt_BR/RicardoMartins_PagSeguro.csv +++ b/app/locale/pt_BR/RicardoMartins_PagSeguro.csv @@ -196,4 +196,5 @@ "invalid security field","código de segurança inválido" "PagSeguro: Payment with two credit cards is only available in the application model. Authorize your account for free to enable it.","PagSeguro: Pagamento com dois cartões só está disponível no modelo de aplicação. Autorize sua conta gratuitamente." "Not applicable","Não aplicável" -"Show Download PDF Button","Mostrar Botão de Download em PDF" \ No newline at end of file +"Show Download PDF Button","Mostrar Botão de Download em PDF" +"Paid Order Status","Status Pago do Pedido" From b11e87917c966d1cc52e97b4425400f458e7f5af Mon Sep 17 00:00:00 2001 From: Eneias Ramos de Melo Date: Mon, 13 Jun 2022 21:23:03 -0300 Subject: [PATCH 03/14] =?UTF-8?q?Ajustado=20algumas=20configura=C3=A7?= =?UTF-8?q?=C3=B5es=20padr=C3=A3o=20em=20config.xml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../community/RicardoMartins/PagSeguro/etc/config.xml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/code/community/RicardoMartins/PagSeguro/etc/config.xml b/app/code/community/RicardoMartins/PagSeguro/etc/config.xml index c373f747..91bed6cc 100644 --- a/app/code/community/RicardoMartins/PagSeguro/etc/config.xml +++ b/app/code/community/RicardoMartins/PagSeguro/etc/config.xml @@ -174,17 +174,21 @@ 0 1 - 0 + dob + 1 + 1 0 0 1 - taxvat + customer|taxvat telephone street_1 street_2 - street_2 + street_3 + street_4 + 1 https://ws.pagseguro.uol.com.br/v2/ https://ws.ricardomartins.net.br/pspro/v7/wspagseguro/v2/ https://stc.pagseguro.uol.com.br/pagseguro/api/v2/checkout/pagseguro.directpayment.js From 8a8d3c2a295ab58656cd966045c0d002b6e5b2e6 Mon Sep 17 00:00:00 2001 From: Eneias Ramos de Melo Date: Thu, 16 Jun 2022 20:39:42 -0300 Subject: [PATCH 04/14] =?UTF-8?q?Atualizado=20modulo=20RicardoMartins=5FPa?= =?UTF-8?q?gSeguro:=20alterado=20atributo=20padr=C3=A3o=20telephone=20->?= =?UTF-8?q?=20fax=20em=20config.xml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/code/community/RicardoMartins/PagSeguro/etc/config.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/community/RicardoMartins/PagSeguro/etc/config.xml b/app/code/community/RicardoMartins/PagSeguro/etc/config.xml index 91bed6cc..9bd88d74 100644 --- a/app/code/community/RicardoMartins/PagSeguro/etc/config.xml +++ b/app/code/community/RicardoMartins/PagSeguro/etc/config.xml @@ -183,7 +183,7 @@ customer|taxvat - telephone + fax street_1 street_2 street_3 From 5f8876b517a3928d5a3cd31499d5d944ee7aec6f Mon Sep 17 00:00:00 2001 From: Eneias Ramos de Melo Date: Thu, 16 Jun 2022 20:57:43 -0300 Subject: [PATCH 05/14] Atualizado modulo RicardoMartins_PagSeguro: adicionado suporte a hash para email sha512 --- .../PagSeguro/Model/Source/Algorithms.php | 3 ++- .../PagSeguro/Model/Source/Hash.php | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/app/code/community/RicardoMartins/PagSeguro/Model/Source/Algorithms.php b/app/code/community/RicardoMartins/PagSeguro/Model/Source/Algorithms.php index 0f19cb44..e7e5a160 100644 --- a/app/code/community/RicardoMartins/PagSeguro/Model/Source/Algorithms.php +++ b/app/code/community/RicardoMartins/PagSeguro/Model/Source/Algorithms.php @@ -16,7 +16,8 @@ public function toOptionArray() { $options = array( array('value' => 'md5', 'label' => 'MD5'), - array('value' => 'sha256', 'label' => 'SHA256') + array('value' => 'sha256', 'label' => 'SHA256'), + array('value' => 'sha512', 'label' => 'SHA512'), ); return $options; diff --git a/app/code/community/RicardoMartins/PagSeguro/Model/Source/Hash.php b/app/code/community/RicardoMartins/PagSeguro/Model/Source/Hash.php index 88ad0cca..e08773b3 100644 --- a/app/code/community/RicardoMartins/PagSeguro/Model/Source/Hash.php +++ b/app/code/community/RicardoMartins/PagSeguro/Model/Source/Hash.php @@ -17,7 +17,7 @@ class RicardoMartins_PagSeguro_Model_Source_Hash public function toOptionArray() { $options = array(); - if(!function_exists('hash') || !in_array('sha256',hash_algos()) || !in_array('md5',hash_algos())){ + if (!$this->_isHashable()) { $options[] = array('value'=>0, 'label'=>'Não suportado no seu ambiente.'); return $options; } @@ -32,7 +32,7 @@ public function toOptionArray() */ public function toArray() { - if(!function_exists('hash') || !in_array('sha256',hash_algos()) || !in_array('md5',hash_algos())){ + if (!$this->_isHashable()) { return array( 0 => Mage::helper('adminhtml')->__('No') ); @@ -40,4 +40,15 @@ public function toArray() return Mage::getModel('adminhtml/system_config_source_yesno')->toArray(); } + + /** + * @return bool + */ + private function _isHashable() + { + return function_exists('hash') + && in_array('sha512',hash_algos()) + && in_array('sha256',hash_algos()) + && in_array('md5',hash_algos()); + } } From a3e632494793ba72c73ab2a9b88110c93bc994ed Mon Sep 17 00:00:00 2001 From: Eneias Ramos de Melo Date: Thu, 16 Jun 2022 22:37:30 -0300 Subject: [PATCH 06/14] Adicionado suporte a pagamento via API --- .../community/RicardoMartins/PagSeguro/Helper/Params.php | 8 +++++++- .../RicardoMartins/PagSeguro/Model/Payment/Cc.php | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/app/code/community/RicardoMartins/PagSeguro/Helper/Params.php b/app/code/community/RicardoMartins/PagSeguro/Helper/Params.php index 66005194..6bdf8d8e 100644 --- a/app/code/community/RicardoMartins/PagSeguro/Helper/Params.php +++ b/app/code/community/RicardoMartins/PagSeguro/Helper/Params.php @@ -724,7 +724,13 @@ public function getPaymentHash($param=null) $registry = ($isAdmin)?$registry->get('PsPayment'):$registry->getData('PsPayment'); if (!$registry) { - return false; + $session = Mage::getSingleton('api/session'); + + if (!$session->isLoggedIn()) { + return false; + } + + $registry = $session->getData('PsPayment'); } $registry = unserialize($registry); diff --git a/app/code/community/RicardoMartins/PagSeguro/Model/Payment/Cc.php b/app/code/community/RicardoMartins/PagSeguro/Model/Payment/Cc.php index 9fafe024..396fb96a 100644 --- a/app/code/community/RicardoMartins/PagSeguro/Model/Payment/Cc.php +++ b/app/code/community/RicardoMartins/PagSeguro/Model/Payment/Cc.php @@ -75,6 +75,12 @@ public function assignData($data) $data = new Varien_Object($data); } + $session = Mage::getSingleton('api/session'); + + if ($session->isLoggedIn()) { + $session->setData('PsPayment', serialize($data->getData('PsPayment'))); + } + $info = $this->getInfoInstance(); $info->setAdditionalInformation('sender_hash', $this->_pHelper->getPaymentHash('sender_hash')); From fe248c1adcca9e148d5a1301157592f6476f1e31 Mon Sep 17 00:00:00 2001 From: Eneias Ramos de Melo Date: Fri, 17 Jun 2022 11:29:14 -0300 Subject: [PATCH 07/14] =?UTF-8?q?Ajustado=20valida=C3=A7=C3=A3o=20para=20s?= =?UTF-8?q?uporte=20a=20hash=20de=20email?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RicardoMartins/PagSeguro/Model/Source/Hash.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/code/community/RicardoMartins/PagSeguro/Model/Source/Hash.php b/app/code/community/RicardoMartins/PagSeguro/Model/Source/Hash.php index e08773b3..a1c62b58 100644 --- a/app/code/community/RicardoMartins/PagSeguro/Model/Source/Hash.php +++ b/app/code/community/RicardoMartins/PagSeguro/Model/Source/Hash.php @@ -17,7 +17,7 @@ class RicardoMartins_PagSeguro_Model_Source_Hash public function toOptionArray() { $options = array(); - if (!$this->_isHashable()) { + if ($this->_noHashable()) { $options[] = array('value'=>0, 'label'=>'Não suportado no seu ambiente.'); return $options; } @@ -32,7 +32,7 @@ public function toOptionArray() */ public function toArray() { - if (!$this->_isHashable()) { + if ($this->_noHashable()) { return array( 0 => Mage::helper('adminhtml')->__('No') ); @@ -44,11 +44,11 @@ public function toArray() /** * @return bool */ - private function _isHashable() + private function _noHashable() { - return function_exists('hash') - && in_array('sha512',hash_algos()) - && in_array('sha256',hash_algos()) - && in_array('md5',hash_algos()); + return !function_exists('hash') + || !in_array('sha512',hash_algos()) + || !in_array('sha256',hash_algos()) + || !in_array('md5',hash_algos()); } } From 8698dd7b49add0ccdaccec146d55234f3d270864 Mon Sep 17 00:00:00 2001 From: Eneias Ramos de Melo Date: Fri, 17 Jun 2022 11:57:28 -0300 Subject: [PATCH 08/14] =?UTF-8?q?Adicionado=20elvis=20operator=20para=20st?= =?UTF-8?q?atus=20PAID=20(em=20caso=20de=20n=C3=A3o-configurado,=20ir?= =?UTF-8?q?=C3=A1=20manter=20o=20atual)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/code/community/RicardoMartins/PagSeguro/Model/Abstract.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/community/RicardoMartins/PagSeguro/Model/Abstract.php b/app/code/community/RicardoMartins/PagSeguro/Model/Abstract.php index 91af3014..8725ad05 100644 --- a/app/code/community/RicardoMartins/PagSeguro/Model/Abstract.php +++ b/app/code/community/RicardoMartins/PagSeguro/Model/Abstract.php @@ -668,7 +668,7 @@ protected function _confirmPayment($payment, $notification) $order->addStatusHistoryComment ( sprintf('Fatura #%s criada com sucesso.', $invoice->getIncrementId()), - Mage::getStoreConfig('payment/rm_pagsecuro_cc/paid_status') + Mage::getStoreConfig('payment/rm_pagsecuro_cc/paid_status') ?: false ); } } From 1391af28f4103443a93925fda3a0f8f446f445d7 Mon Sep 17 00:00:00 2001 From: Eneias Ramos de Melo Date: Sun, 14 Aug 2022 15:10:41 -0300 Subject: [PATCH 09/14] Adicionado rotina para obter sessionID via API para ser utilizado no card token. --- .../RicardoMartins/PagSeguro/Model/Api.php | 15 +++++++ .../RicardoMartins/PagSeguro/etc/api.xml | 39 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 app/code/community/RicardoMartins/PagSeguro/Model/Api.php create mode 100644 app/code/community/RicardoMartins/PagSeguro/etc/api.xml diff --git a/app/code/community/RicardoMartins/PagSeguro/Model/Api.php b/app/code/community/RicardoMartins/PagSeguro/Model/Api.php new file mode 100644 index 00000000..9afd65bb --- /dev/null +++ b/app/code/community/RicardoMartins/PagSeguro/Model/Api.php @@ -0,0 +1,15 @@ + + */ + +class RicardoMartins_PagSeguro_Model_Api extends Mage_Api_Model_Resource_Abstract +{ + public function sessionId() + { + return Mage::helper('ricardomartins_pagseguro')->getSessionId(); + } +} + diff --git a/app/code/community/RicardoMartins/PagSeguro/etc/api.xml b/app/code/community/RicardoMartins/PagSeguro/etc/api.xml new file mode 100644 index 00000000..4147a9c1 --- /dev/null +++ b/app/code/community/RicardoMartins/PagSeguro/etc/api.xml @@ -0,0 +1,39 @@ + + + + + + + + ricardomartins_pagseguro/api + RicardoMartins PagSeguro API + ricardomartins_pagseguro + + + Get session ID to process card token. + ricardomartins_pagseguro/session_id + sessionId + + + + + + + + RicardoMartins PagSeguro API + 0 + + Session ID + + + + + + + From b9f03371461f51da069870ee42c134b8365e7b7c Mon Sep 17 00:00:00 2001 From: Eneias Ramos de Melo Date: Sun, 14 Aug 2022 20:23:45 -0300 Subject: [PATCH 10/14] =?UTF-8?q?Adicionado=20campo=20de=20instru=C3=A7?= =?UTF-8?q?=C3=B5es=20de=20pagamento=20para=20cart=C3=A3o=20de=20cr=C3=A9d?= =?UTF-8?q?ito?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RicardoMartins/PagSeguro/Block/Form/Cc.php | 11 +++++++++++ .../RicardoMartins/PagSeguro/Model/Payment/Cc.php | 5 +++++ .../community/RicardoMartins/PagSeguro/etc/system.xml | 10 +++++++++- .../template/ricardomartins_pagseguro/form/cc.phtml | 7 +++++++ 4 files changed, 32 insertions(+), 1 deletion(-) diff --git a/app/code/community/RicardoMartins/PagSeguro/Block/Form/Cc.php b/app/code/community/RicardoMartins/PagSeguro/Block/Form/Cc.php index f4eb7205..1685f5f9 100644 --- a/app/code/community/RicardoMartins/PagSeguro/Block/Form/Cc.php +++ b/app/code/community/RicardoMartins/PagSeguro/Block/Form/Cc.php @@ -11,6 +11,8 @@ */ class RicardoMartins_PagSeguro_Block_Form_Cc extends Mage_Payment_Block_Form_Cc { + protected $_instructions = null; + /** * Set block template */ @@ -162,4 +164,13 @@ public function getCurrentCustomerDocument() return ""; } + + protected function getInstructions() + { + if (is_null($this->_instructions)) { + $this->_instructions = $this->getMethod()->getInstructions(); + } + + return $this->_instructions; + } } diff --git a/app/code/community/RicardoMartins/PagSeguro/Model/Payment/Cc.php b/app/code/community/RicardoMartins/PagSeguro/Model/Payment/Cc.php index 396fb96a..4394c2f7 100644 --- a/app/code/community/RicardoMartins/PagSeguro/Model/Payment/Cc.php +++ b/app/code/community/RicardoMartins/PagSeguro/Model/Payment/Cc.php @@ -1309,4 +1309,9 @@ public function recalculateInstallmentsAndPlaceOrder($payment, $amount) Mage::throwException($e->getMessage()); } } + + public function getInstructions() + { + return trim($this->getConfigData('instructions')); + } } diff --git a/app/code/community/RicardoMartins/PagSeguro/etc/system.xml b/app/code/community/RicardoMartins/PagSeguro/etc/system.xml index 4eac7578..6cc712f9 100644 --- a/app/code/community/RicardoMartins/PagSeguro/etc/system.xml +++ b/app/code/community/RicardoMartins/PagSeguro/etc/system.xml @@ -501,12 +501,20 @@ 1 + + + textarea + 220 + 1 + 1 + 1 + select adminhtml/system_config_source_yesno ricardomartins_pagseguro/system_config_backend_validateMultiCc - 220 + 230 1 1 1 diff --git a/app/design/frontend/base/default/template/ricardomartins_pagseguro/form/cc.phtml b/app/design/frontend/base/default/template/ricardomartins_pagseguro/form/cc.phtml index b0bd7fbe..712292e5 100644 --- a/app/design/frontend/base/default/template/ricardomartins_pagseguro/form/cc.phtml +++ b/app/design/frontend/base/default/template/ricardomartins_pagseguro/form/cc.phtml @@ -25,6 +25,13 @@ $multiCcEnabled = Mage::helper('ricardomartins_pagseguro')->isMultiCcEnabled(); */ ?> + getInstructions()): ?> +
  • +
    + getInstructions()) ?> +
    +
  • +
  • From 073d8ffbc6927865bcdcdee36fddf94145506668 Mon Sep 17 00:00:00 2001 From: Eneias Ramos de Melo Date: Thu, 18 Aug 2022 13:15:07 -0300 Subject: [PATCH 11/14] =?UTF-8?q?Adicionado=20constante=20CODE=20para=20co?= =?UTF-8?q?mparar=20met=C3=B3do=20de=20pagamento?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../community/RicardoMartins/PagSeguro/Model/Payment/Cc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/code/community/RicardoMartins/PagSeguro/Model/Payment/Cc.php b/app/code/community/RicardoMartins/PagSeguro/Model/Payment/Cc.php index 4394c2f7..3a54c912 100644 --- a/app/code/community/RicardoMartins/PagSeguro/Model/Payment/Cc.php +++ b/app/code/community/RicardoMartins/PagSeguro/Model/Payment/Cc.php @@ -11,7 +11,9 @@ */ class RicardoMartins_PagSeguro_Model_Payment_Cc extends RicardoMartins_PagSeguro_Model_Abstract { - protected $_code = 'rm_pagseguro_cc'; + const CODE = 'rm_pagseguro_cc'; + + protected $_code = self::CODE; protected $_formBlockType = 'ricardomartins_pagseguro/form_cc'; protected $_infoBlockType = 'ricardomartins_pagseguro/form_info_cc'; protected $_isGateway = true; From b36722390b3bb279145fea0d609d6e7930bd1927 Mon Sep 17 00:00:00 2001 From: Eneias Ramos de Melo Date: Sat, 20 Aug 2022 18:39:44 -0300 Subject: [PATCH 12/14] Ajustado notificationURL em RicardoMartins_PagSeguro_Helper_Internal::getCreditCardApiCallParams() para enviar _store com storeId do pedido --- app/code/community/RicardoMartins/PagSeguro/Helper/Internal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/community/RicardoMartins/PagSeguro/Helper/Internal.php b/app/code/community/RicardoMartins/PagSeguro/Helper/Internal.php index d5336fa1..47f15784 100644 --- a/app/code/community/RicardoMartins/PagSeguro/Helper/Internal.php +++ b/app/code/community/RicardoMartins/PagSeguro/Helper/Internal.php @@ -72,7 +72,7 @@ public function getCreditCardApiCallParams(Mage_Sales_Model_Order $order, $payme 'extraAmount' => $extraAmount, 'notificationURL' => Mage::getUrl( 'ricardomartins_pagseguro/notification', - array('_secure' => true, '_nosid' => $noSID) + array('_store' => $order->getStoreId(), '_secure' => true, '_nosid' => $noSID) ), ); $params = array_merge($params, $pHelper->getItemsParams($order)); From 8ac198580bc8146dcd52c6f23a6147cd0eb3a465 Mon Sep 17 00:00:00 2001 From: Eneias Ramos de Melo Date: Wed, 27 Sep 2023 18:08:56 -0300 Subject: [PATCH 13/14] =?UTF-8?q?Atualizado=20configura=C3=A7=C3=B5es=20pa?= =?UTF-8?q?ra=20address=5Ftelephone=5Fattribute=20=3D>=20cellphone,=20send?= =?UTF-8?q?=5Fstatus=5Fchange=5Femail=20=3D>=201,=20send=5Fstatus=5Fchange?= =?UTF-8?q?=5Femail=20=3D>=201,=20owner=5Fdob=5Fattribute=20=3D>=20dob=20e?= =?UTF-8?q?m=20config.xml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/code/community/RicardoMartins/PagSeguro/etc/config.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/code/community/RicardoMartins/PagSeguro/etc/config.xml b/app/code/community/RicardoMartins/PagSeguro/etc/config.xml index c892c655..37d8ece4 100644 --- a/app/code/community/RicardoMartins/PagSeguro/etc/config.xml +++ b/app/code/community/RicardoMartins/PagSeguro/etc/config.xml @@ -193,7 +193,7 @@ customer|taxvat - fax + cellphone street_1 street_2 street_3 @@ -210,7 +210,8 @@ 1 1 1 - 0 + 1 + 1 0 @@ -233,6 +234,7 @@ 40 0 1 + dob 0 1 - dob 1 1 0 @@ -234,7 +233,6 @@ 40 0 1 - dob