Exemplo n.º 1
0
 public function show()
 {
     $a = new Soap();
     //return $a->functions();
     $req = new InquiryRequest();
     $req->billKey1 = '132410101052';
     $req->billKey2 = '1';
     $data = ['request' => $req];
     return var_dump($a->call('inquiry', $data)->billDetails->BillDetail);
 }
Exemplo n.º 2
0
 public function bayar($jenis, $id)
 {
     $a = new Soap();
     $req = new PaymentRequest();
     $req->billKey1 = $id;
     $req->billKey2 = $jenis;
     $data = ['request' => $req];
     $response = $a->call('payment', $data);
     //return var_dump($response);
     return redirect('/pembayaran');
 }