Skip to content

Commit

Permalink
Merge branch 'release/3.15.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
r-martins committed Oct 7, 2022
2 parents b747957 + be41cd2 commit 945731e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 2 additions & 3 deletions app/code/community/RicardoMartins/PagSeguro/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@ public function getSessionId()
return $fromCache;
}

$pagseguroKey = Mage::getStoreConfig(self::XML_PATH_PAYMENT_PAGSEGURO_KEY);
$useApp = $this->getLicenseType() == 'app'
&& !empty(
Mage::getStoreConfig(self::XML_PATH_PAYMENT_PAGSEGURO_KEY)
);
&& !empty($pagseguroKey);
$url = $this->getWsUrl('sessions', $useApp);

$ch = curl_init($url);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ public function _extractMultiCcDataFromForm($paymentInfo, $formData, $cardIndex)
"installments_value" => $installmentsValue,
);

if (empty(Mage::getStoreConfig('payment/rm_pagseguro_cc/owner_dob_attribute'))) {
$ownerDobAttr = Mage::getStoreConfig('payment/rm_pagseguro_cc/owner_dob_attribute');
if (empty($ownerDobAttr)) {
$dob = str_pad($formData->getData("ps_multicc{$cardIndex}_dob_day"), 2, "0", STR_PAD_LEFT) . "/" .
str_pad($formData->getData("ps_multicc{$cardIndex}_dob_month"), 2, "0", STR_PAD_LEFT) . "/" .
$formData->getData("ps_multicc{$cardIndex}_dob_year");
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/RicardoMartins/PagSeguro/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config>
<modules>
<RicardoMartins_PagSeguro>
<version>3.15.4</version>
<version>3.15.5</version>
</RicardoMartins_PagSeguro>
</modules>
<global>
Expand Down

0 comments on commit 945731e

Please sign in to comment.