Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix syntax error and remove unused methods #187878612 #25

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,4 @@ interface RicardoMartins_PagBank_Api_Connect_PublicKeyInterface
* Used to save the public key.
*/
const PUBLIC_KEY_CONFIG_PATH = 'payment/ricardomartins_pagbank/public_key';

/**
* @param string $connectKey
* @return string
*/
public function createPublicKey(string $connectKey): string;

/**
* @param string $publicKey
* @return void
*/
public function savePublicKey(string $publicKey): void;
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function generatePublicKey(Varien_Event_Observer $observer)
}

try {
Mage::getConfig()->saveConfig('payment/ricardomartins_pagbank/public_key', $publicKey);
Mage::getConfig()->saveConfig(RicardoMartins_PagBank_Api_Connect_PublicKeyInterface::PUBLIC_KEY_CONFIG_PATH, $publicKey);
} catch (\Exception $e) {
$helper->writeLog(sprintf('Error saving public key: %s', $e->getMessage()));
throw new \Exception(__('Error saving public key: %s', $e->getMessage()));
Expand Down