Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.94 KB | None | 0 0
  1. public function get_merchant_json_upoint_airtime($merchant_code)
  2.     {
  3.         $profiles = false;
  4.         $actions = array();
  5.         $profiles = $this->get_merchant($merchant_code);
  6.  
  7.         if ($profiles) {
  8.  
  9.             if (isset($profiles['upoint_denom'])) {
  10.                 $var = $profiles['upoint_denom'];
  11.                 $var2 = array();
  12.                 $var3 = array();
  13.                 foreach ($var as $key => $value) {
  14.                     $var2[] = $key;
  15.                     $var3[] = $value;  
  16.                 }
  17.             }
  18.  
  19.  
  20.                 $actions['payment'] = array(
  21.                     'channelName' => "upointAirtime",
  22.                     'channelStatus' => $this->settings->get('upoint_airtime_status'),
  23.                     'postUrl' => site_url($this->uri->assoc_to_uri(array('upoint_airtime_api' => 'airtime') + $this->uri->uri_to_assoc(3))).'/',
  24.                     'logo' => site_url($this->template->get_theme_path().'img/upoint.jpg'),
  25.                     'btnAction' => 'upoint_airtime',
  26.                     'denomKey' => $var2,
  27.                     'denomValue' => $var3,
  28.                     'code' => '',
  29.                     'mdn' => 'upoint_mdn',
  30.                     );
  31.            
  32.         }
  33.  
  34.         return $actions;
  35.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement