Exemple #1
0
 /**
  * postPayment
  */
 public function postPayment()
 {
     $data = Input::all();
     //$data['paydate'] = strtotime($data['paydate']);
     //插入payments
     $payment = OrderPayment::create($data);
     $payments = OrderPayment::where('order_id', Input::get('order_id'))->get();
     return View::make('admin.orders.payment')->with('payments', $payments);
 }
Exemple #2
0
 protected function _save_orderPayment($order_id, $orderPayment)
 {
     $input = $orderPayment;
     $input += ['order_id' => $order_id, 'code' => NULL, 'unique' => NULL];
     return \OrderPayment::create($input);
 }