/** * This loads the paypal configuration, the data is retrieved using the * RM_PayPal class * * @return json json array information containing paypal information */ public function configJsonAction() { $paypalObj = new RM_PayPal(); $settings = $paypalObj->getSettings()->toArray(); $json = new stdClass(); $json->settings = $settings; return array('data' => $json); }
/** * get the paypal config * * @return array */ private function _getConfig() { $paypalObj = new RM_PayPal(); $value = $paypalObj->getSettings()->toArray(); return $value[0]; }