@@ -11,27 +11,31 @@ public function __construct($module, $file, $path)
1111 public function assignConfiguration (){
1212 $ test_secretkey = Configuration::get ('PAYSTACK_TEST_SECRETKEY ' );
1313 $ test_publickey = Configuration::get ('PAYSTACK_TEST_PUBLICKEY ' );
14- $ live_secretkey = Configuration::get ('PAYSTACK_LIVE_SECRETKEY ' );
14+ $ live_secretkey = Configuration::get ('PAYSTACK_LIVE_SECRETKEY ' );
1515 $ live_publickey = Configuration::get ('PAYSTACK_LIVE_PUBLICKEY ' );
1616 $ mode = Configuration::get ('PAYSTACK_MODE ' );
17+ $ style = Configuration::get ('PAYSTACK_STYLE ' );
1718 $ this ->context ->smarty ->assign ('test_secretkey ' , $ test_secretkey );
1819 $ this ->context ->smarty ->assign ('test_publickey ' , $ test_publickey );
1920 $ this ->context ->smarty ->assign ('live_secretkey ' , $ live_secretkey );
2021 $ this ->context ->smarty ->assign ('live_publickey ' , $ live_publickey );
2122 $ this ->context ->smarty ->assign ('mode ' , $ mode );
23+ $ this ->context ->smarty ->assign ('style ' , $ style );
2224 }
2325 public function processConfiguration (){
2426 if (Tools::isSubmit ('save_settings ' )){
2527 $ test_publickey = Tools::getValue ('test_publickey ' );
2628 $ test_secretkey = Tools::getValue ('test_secretkey ' );
2729 $ public_publickey = Tools::getValue ('live_publickey ' );
2830 $ public_secretkey = Tools::getValue ('live_secretkey ' );
31+ $ style = Tools::getValue ('style ' );
2932 $ mode = Tools::getValue ('mode ' );
3033 Configuration::updateValue ('PAYSTACK_MODE ' , $ mode );
3134 Configuration::updateValue ('PAYSTACK_TEST_PUBLICKEY ' , $ test_publickey );
3235 Configuration::updateValue ('PAYSTACK_TEST_SECRETKEY ' , $ test_secretkey );
3336 Configuration::updateValue ('PAYSTACK_LIVE_PUBLICKEY ' , $ public_publickey );
3437 Configuration::updateValue ('PAYSTACK_LIVE_SECRETKEY ' , $ public_secretkey );
38+ Configuration::updateValue ('PAYSTACK_STYLE ' , $ style );
3539 $ this ->context ->smarty ->assign ('confirmation ' , 'ok ' );
3640 }
3741 }
0 commit comments