save order
This commit is contained in:
parent
d1dae9b736
commit
c20deac3fe
15 changed files with 739 additions and 301 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue