/**
  * Remove the specified payment from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     Payment::destroy($id);
     return Redirect::route('payments.index');
 }
 /**
  * Remove the specified payment from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroyer($id)
 {
     Payment::destroy($id);
     return Redirect::route('admin.valid')->with('successMessage', 'Konfirmasi pembayaran berhasil dibatalkan');
 }
 /**
  * Remove the specified payment from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     Payment::destroy($id);
     return Redirect::route('payments.index')->withDeleteMessage('Payment successfully deleted!');
 }
 function destroy($params)
 {
     $params['id'] ? $payment = new Payment($params['id']) : bail('required parameter $params["id"] missing.');
     $payment->destroy();
     isset($params['redirect']) ? $redirect = $params['redirect'] : ($redirect = array('controller' => 'Payment', 'action' => 'index'));
     $this->redirectTo($redirect);
 }