Advertisement
fahmihilmansyah

Untitled

Jan 6th, 2016
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.22 KB | None | 0 0
  1. <?php
  2.  
  3. use FhhLib\Leopard\LeoVoucher;
  4. use FhhLib\Leopard\LeoCoba;
  5.  
  6. class DevTransconnect extends CI_Controller {
  7.  
  8.     function __construct() {
  9.         parent::__construct();
  10.        
  11.     }
  12.  
  13.     function index() {
  14.        
  15.         $dats = array(
  16.                 'trx_type' => 'PAY' ,
  17.                 'trx_id' => '14520622513',
  18.                 'uid' => 'FHMDEV',
  19.                 'uraian_produk' => 'TEL.10' ,
  20.                 'product' => 'TEL.10',
  21.                 'idkategori' => '1',
  22.                 'namaProduk' => 'TELKOMSEL',
  23.                 'product_jenis' => 'TEL',
  24.                 'prod_jenis' => 'TEL.10',
  25.                 'balance_amount' => '10243350',
  26.                 'harga_h2h' => '10700' ,
  27.                 'markup' => '100' ,
  28.                 'fee_loket' => '0' ,
  29.                 'admin_fee' => '0' ,
  30.                 'harga_cash_back' => '0' ,
  31.                 'cust_id' => '081234137477',
  32.                 'bil_pay' => '',        
  33.             );
  34.          
  35.         if(empty($switchmethods) || $switchmethods == '' || empty($switchlink) || $switchlink == ''):
  36.             die(res_error('666', 'PRODUCT ERROR PLEASE CONTACT'));
  37.         endif;
  38.  
  39.         $switchmethods = new $switchmethods($dats);
  40.         $switchmethods->{$switchlink}();
  41.     }
  42.     function coba(){
  43.         $leocoba = new LeoCoba();
  44.             echo $leocoba->test();
  45.             $dats = array(
  46.                 'trx_type' => 'PAY' ,
  47.                 'trx_id' => '14520622513',
  48.                 'uid' => 'FHMDEV',
  49.                 'uraian_produk' => 'TEL.10' ,
  50.                 'product' => 'TEL.10',
  51.                 'idkategori' => '1',
  52.                 'namaProduk' => 'TELKOMSEL',
  53.                 'product_jenis' => 'TEL',
  54.                 'prod_jenis' => 'TEL.10',
  55.                 'balance_amount' => '10243350',
  56.                 'harga_h2h' => '10700' ,
  57.                 'markup' => '100' ,
  58.                 'fee_loket' => '0' ,
  59.                 'admin_fee' => '0' ,
  60.                 'harga_cash_back' => '0' ,
  61.                 'cust_id' => '081234137477',
  62.                 'bil_pay' => '',        
  63.             );
  64.             $LeoVoucher = new LeoVoucher($dats);
  65.             $LeoVoucher->leo_voucher();
  66.     }
  67.    
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement