예제 #1
0
 /**
  * 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);
 }
예제 #2
0
 /**
  * get the paypal config
  *
  * @return   array
  */
 private function _getConfig()
 {
     $paypalObj = new RM_PayPal();
     $value = $paypalObj->getSettings()->toArray();
     return $value[0];
 }