Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use FhhLib\Leopard\LeoVoucher;
- use FhhLib\Leopard\LeoCoba;
- class DevTransconnect extends CI_Controller {
- function __construct() {
- parent::__construct();
- }
- function index() {
- $dats = array(
- 'trx_type' => 'PAY' ,
- 'trx_id' => '14520622513',
- 'uid' => 'FHMDEV',
- 'uraian_produk' => 'TEL.10' ,
- 'product' => 'TEL.10',
- 'idkategori' => '1',
- 'namaProduk' => 'TELKOMSEL',
- 'product_jenis' => 'TEL',
- 'prod_jenis' => 'TEL.10',
- 'balance_amount' => '10243350',
- 'harga_h2h' => '10700' ,
- 'markup' => '100' ,
- 'fee_loket' => '0' ,
- 'admin_fee' => '0' ,
- 'harga_cash_back' => '0' ,
- 'cust_id' => '081234137477',
- 'bil_pay' => '',
- );
- if(empty($switchmethods) || $switchmethods == '' || empty($switchlink) || $switchlink == ''):
- die(res_error('666', 'PRODUCT ERROR PLEASE CONTACT'));
- endif;
- $switchmethods = new $switchmethods($dats);
- $switchmethods->{$switchlink}();
- }
- function coba(){
- $leocoba = new LeoCoba();
- echo $leocoba->test();
- $dats = array(
- 'trx_type' => 'PAY' ,
- 'trx_id' => '14520622513',
- 'uid' => 'FHMDEV',
- 'uraian_produk' => 'TEL.10' ,
- 'product' => 'TEL.10',
- 'idkategori' => '1',
- 'namaProduk' => 'TELKOMSEL',
- 'product_jenis' => 'TEL',
- 'prod_jenis' => 'TEL.10',
- 'balance_amount' => '10243350',
- 'harga_h2h' => '10700' ,
- 'markup' => '100' ,
- 'fee_loket' => '0' ,
- 'admin_fee' => '0' ,
- 'harga_cash_back' => '0' ,
- 'cust_id' => '081234137477',
- 'bil_pay' => '',
- );
- $LeoVoucher = new LeoVoucher($dats);
- $LeoVoucher->leo_voucher();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement