save order

This commit is contained in:
Kevin Adametz 2019-02-25 22:16:08 +01:00
parent d1dae9b736
commit c20deac3fe
15 changed files with 739 additions and 301 deletions

View file

@ -50,6 +50,7 @@ class CheckoutController extends Controller
'billing.zipcode'=>'required',
'billing.city' => 'required',
'accepted_data_checkbox' => 'accepted',
'billing.salutation => 'required'
);
if(!Input::get('shipping.same_as_billing')){
@ -59,6 +60,8 @@ class CheckoutController extends Controller
'shipping.address'=>'required',
'shipping.zipcode'=>'required',
'shipping.city' => 'required',
'shipping.salutation => 'required'
]);
}
$validator = Validator::make(Input::all(), $rules);
@ -83,17 +86,19 @@ class CheckoutController extends Controller
public function transactionStatus($check){
if($check == "cancel"){
\Session::flash('checkout-error', 'Der Zahlungsvorgang wurde abgebrochen, die Bestellung konnte nicht ausgeführt werden.');
return $this->checkout();
}
$pay = new PayoneController([]);
$pay->checkStatus();
$data = \Request::all();
var_dump($data);
$data = \Input::all();
var_dump($data);
die();
if($check == "cancel"){
\Session::flash('checkout-error', 'Der Zahlungsvorgang wurde abgebrochen, die Bestellung konnte nicht ausgeführt werden.');
return $this->checkout();
}
$pay = new PayoneController([]);
$pay->checkStatus();
}
public function removeCard($rowId){