Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function get_merchant_json_upoint_airtime($merchant_code)
- {
- $profiles = false;
- $actions = array();
- $profiles = $this->get_merchant($merchant_code);
- if ($profiles) {
- if (isset($profiles['upoint_denom'])) {
- $var = $profiles['upoint_denom'];
- $var2 = array();
- $var3 = array();
- foreach ($var as $key => $value) {
- $var2[] = $key;
- $var3[] = $value;
- }
- }
- $actions['payment'] = array(
- 'channelName' => "upointAirtime",
- 'channelStatus' => $this->settings->get('upoint_airtime_status'),
- 'postUrl' => site_url($this->uri->assoc_to_uri(array('upoint_airtime_api' => 'airtime') + $this->uri->uri_to_assoc(3))).'/',
- 'logo' => site_url($this->template->get_theme_path().'img/upoint.jpg'),
- 'btnAction' => 'upoint_airtime',
- 'denomKey' => $var2,
- 'denomValue' => $var3,
- 'code' => '',
- 'mdn' => 'upoint_mdn',
- );
- }
- return $actions;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement