Skip to content

Commit

Permalink
Helper should trim keys before returning
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimlawal committed Apr 19, 2016
1 parent ab67d2e commit 9c1c17f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/code/community/Paystack/Inline/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ class Paystack_Inline_Helper_Data extends Mage_Core_Helper_Abstract

function getPublicKey(){
if(Mage::getStoreConfig(Paystack_Inline_Helper_Data::XML_PATH_TEST_MODE)){
return Mage::getStoreConfig(Paystack_Inline_Helper_Data::XML_PATH_PUBLIC_KEY_TEST);
return trim(Mage::getStoreConfig(Paystack_Inline_Helper_Data::XML_PATH_PUBLIC_KEY_TEST));
} else{
return Mage::getStoreConfig(Paystack_Inline_Helper_Data::XML_PATH_PUBLIC_KEY_LIVE);
return trim(Mage::getStoreConfig(Paystack_Inline_Helper_Data::XML_PATH_PUBLIC_KEY_LIVE));
}
}

function getSecretKey(){
if(Mage::getStoreConfig(Paystack_Inline_Helper_Data::XML_PATH_TEST_MODE)){
return Mage::getStoreConfig(Paystack_Inline_Helper_Data::XML_PATH_SECRET_KEY_TEST);
return trim(Mage::getStoreConfig(Paystack_Inline_Helper_Data::XML_PATH_SECRET_KEY_TEST));
} else{
return Mage::getStoreConfig(Paystack_Inline_Helper_Data::XML_PATH_SECRET_KEY_LIVE);
return trim(Mage::getStoreConfig(Paystack_Inline_Helper_Data::XML_PATH_SECRET_KEY_LIVE));
}
}

Expand Down

0 comments on commit 9c1c17f

Please sign in to comment.